if (configShowPopup.isSelected() && (!mainFrame.isVisible() || !mainFrame.isActive())) { mainFrame.toFront(); mainFrame.setAlwaysOnTop(true); trayIcon.displayMessage(mainFrame.getTitle(), "Started ripping " + ripper.getURL().toExternalForm(), MessageType.INFO);
playerWindow.toFront();
static public void toFront() { synchronized (instance) { if (null != frame) frame.toFront(); } }
@Override public void run() { mainFrame.toFront(); } });
public final void windowLostFocus(WindowEvent we) { if (mmax2.editBasedataWindow != null) { mmax2.editBasedataWindow.toFront(); } } });
@Override public void run() { mainFrame.toFront(); } });
JFrame frame=...; ... //show splash if (!showSplash()) { JOptionPane.showMessageDialog(null, "SplashScreen could not be shown!", "Splash Error: 0x003", JOptionPane.ERROR_MESSAGE); } // set JFrame visible frame.setVisible(true); frame.toFront();
@Override public void run() { try { Thread.sleep(200); } catch (final Exception e) {} frame.toFront(); } }
/** Can be null. */ static public Display getFront() { final Collection<Display> ds = al_displays; if (null == front && ds.size() > 0) { // Should never happen, this is a safety net Utils.log2("Fixing error with null 'Display.getFront()'"); final Display d = ds.iterator().next(); d.frame.toFront(); front = d; } return front; }
@Override public void actionPerformed(ActionEvent e) { Utility.centerWindow(top); top.toFront(); } }));
protected void toFront() { if (m_debugger!=null) m_debugger.getMainFrame().toFront(); } protected void selectConsoleWindow() {
public void run() { if (m_debugger!=null) m_debugger.getMainFrame().toFront(); } });
public void exec() { TreeConnectorsView tcv = open.get(tree); if (null != tcv) { tcv.update(); tcv.frame.setVisible(true); tcv.frame.toFront(); } else { // Create and store in the Map of 'open' new TreeConnectorsView(tree); } } }, tree.getProject());
/** * Overrides <code>java.awt.Window#toFront</code> to have the window return to a normal state if it is minimized. */ @Override public void toFront() { if((getExtendedState()&Frame.ICONIFIED)!=0) setExtendedState(Frame.NORMAL); super.toFront(); }
@Override public void result( Result result ) { super.result( result ); if( result.getStatus().equals( Result.FAILED ) && BooleanUtils.toBoolean( System.getProperty( PROPERTY_PAUSE_ON_ERROR )) ){ JFrame jf = new JFrame(); JOptionPane.showMessageDialog( jf, result.getErrorMessage(), "Exception occurred!", JOptionPane.INFORMATION_MESSAGE ); jf.toFront(); jf.repaint(); } }
@Override public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) { if (!autoSyncWithEditor && !entryList.isEmpty()) { getActiveDisplayedEntry().gotoEntryInEditor(); JFrame frame = Core.getMainWindow().getApplicationFrame(); frame.setState(JFrame.NORMAL); frame.toFront(); } } } });
void jumpToSelectedIssue() { getSelectedIssue().map(IIssue::getSegmentNumber).ifPresent(i -> { Core.getEditor().gotoEntry(i); JFrame mwf = Core.getMainWindow().getApplicationFrame(); mwf.setState(JFrame.NORMAL); mwf.toFront(); }); }
protected void topComponentRequestActive(TopComponent tc) { JFrame f = (JFrame)SwingUtilities.getAncestorOfClass(JFrame.class, tc); if(f != null) { f.toFront(); } registry().setActive(tc); activateComponent(tc); }
protected void topComponentRequestActive(TopComponent tc) { JFrame f = (JFrame)SwingUtilities.getAncestorOfClass(JFrame.class, tc); if(f != null) { f.toFront(); } registry().setActive(tc); activateComponent(tc); }
public static void frameToFront(JFrame frame) { int state = frame.getExtendedState(); state &= ~JFrame.ICONIFIED; frame.setExtendedState(state); frame.setAlwaysOnTop(true); frame.toFront(); frame.requestFocus(); frame.setAlwaysOnTop(false); }