本文整理了Java中javax.swing.JFrame.toFront()
方法的一些代码示例,展示了JFrame.toFront()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFrame.toFront()
方法的具体详情如下:
包路径:javax.swing.JFrame
类名称:JFrame
方法名:toFront
暂无
代码示例来源:origin: RipMeApp/ripme
if (configShowPopup.isSelected() &&
(!mainFrame.isVisible() || !mainFrame.isActive())) {
mainFrame.toFront();
mainFrame.setAlwaysOnTop(true);
trayIcon.displayMessage(mainFrame.getTitle(), "Started ripping " + ripper.getURL().toExternalForm(), MessageType.INFO);
代码示例来源:origin: 4thline/cling
playerWindow.toFront();
代码示例来源:origin: sc.fiji/TrakEM2_
static public void toFront() {
synchronized (instance) {
if (null != frame) frame.toFront();
}
}
代码示例来源:origin: com.quinsoft.zeidon/object-browser
@Override
public void run() {
mainFrame.toFront();
}
});
代码示例来源:origin: net.sf.mmax2/mmax2
public final void windowLostFocus(WindowEvent we)
{
if (mmax2.editBasedataWindow != null)
{
mmax2.editBasedataWindow.toFront();
}
}
});
代码示例来源:origin: com.quinsoft.zeidon/object-browser
@Override
public void run() {
mainFrame.toFront();
}
});
代码示例来源:origin: stackoverflow.com
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();
代码示例来源:origin: sc.fiji/TrakEM2_
@Override
public void run() {
try { Thread.sleep(200); } catch (final Exception e) {}
frame.toFront();
}
}
代码示例来源:origin: sc.fiji/TrakEM2_
/** 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;
}
代码示例来源:origin: org.appdapter/org.appdapter.lib.gui
@Override public void actionPerformed(ActionEvent e) {
Utility.centerWindow(top);
top.toFront();
}
}));
代码示例来源:origin: net.sourceforge.owlapi/org.semanticweb.hermit
protected void toFront() {
if (m_debugger!=null)
m_debugger.getMainFrame().toFront();
}
protected void selectConsoleWindow() {
代码示例来源:origin: com.hermit-reasoner/org.semanticweb.hermit
public void run() {
if (m_debugger!=null)
m_debugger.getMainFrame().toFront();
}
});
代码示例来源:origin: sc.fiji/TrakEM2_
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());
代码示例来源:origin: mucommander/mucommander
/**
* 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();
}
代码示例来源:origin: com.foreach.cwb/cwb-core
@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();
}
}
代码示例来源:origin: omegat-org/omegat
@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();
}
}
}
});
代码示例来源:origin: omegat-org/omegat
void jumpToSelectedIssue() {
getSelectedIssue().map(IIssue::getSegmentNumber).ifPresent(i -> {
Core.getEditor().gotoEntry(i);
JFrame mwf = Core.getMainWindow().getApplicationFrame();
mwf.setState(JFrame.NORMAL);
mwf.toFront();
});
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
protected void topComponentRequestActive(TopComponent tc) {
JFrame f = (JFrame)SwingUtilities.getAncestorOfClass(JFrame.class, tc);
if(f != null) {
f.toFront();
}
registry().setActive(tc);
activateComponent(tc);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
protected void topComponentRequestActive(TopComponent tc) {
JFrame f = (JFrame)SwingUtilities.getAncestorOfClass(JFrame.class, tc);
if(f != null) {
f.toFront();
}
registry().setActive(tc);
activateComponent(tc);
}
代码示例来源:origin: otros-systems/otroslogviewer
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);
}
内容来源于网络,如有侵权,请联系作者删除!