本文整理了Java中javax.swing.JFrame.setFocusableWindowState()
方法的一些代码示例,展示了JFrame.setFocusableWindowState()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFrame.setFocusableWindowState()
方法的具体详情如下:
包路径:javax.swing.JFrame
类名称:JFrame
方法名:setFocusableWindowState
暂无
代码示例来源:origin: xyz.cofe/docking-frames-core
public void setPreventFocusStealing( boolean prevent ){
frame.setFocusableWindowState( !prevent );
}
代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-core
public void setPreventFocusStealing( boolean prevent ){
frame.setFocusableWindowState( !prevent );
}
代码示例来源:origin: de.sciss/scisslib
public void focusLost( FocusEvent e )
{
if( e.getComponent() == currentFocus ) {
currentFocus = null;
jf.setFocusableWindowState( false );
}
}
代码示例来源:origin: de.sciss/scisslib
public void mousePressed( MouseEvent e )
{
final Component c = e.getComponent();
jf.setFocusableWindowState( true );
c.requestFocus();
currentFocus = c;
}
代码示例来源:origin: stackoverflow.com
JFrame frame = new JFrame();
frame.setUndecorated(true);
frame.setBackground(new java.awt.Color(0, 0, 0, 0));
final JFXPanel fxPanel = new JFXPanel();
frame.add(fxPanel);
frame.setSize(422, 116);
frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
fxPanel.setScene(scene);
frame.setResizable(false);
frame.setAlwaysOnTop(true);
frame.setFocusableWindowState(false); // <- Here is the secret
frame.setVisible(true);
代码示例来源:origin: stackoverflow.com
JFrame frame = new JFrame("Testing");
frame.setAlwaysOnTop(true);
frame.setUndecorated(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.add(new BackgroundPane());
frame.setLocation(0, 0);
frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
frame.setSize(dim);
// This will stop the background window from become focused,
// potentially hiding the other windows
frame.setFocusableWindowState(false);
frame.setFocusable(false);
frame.setVisible(true);
JFrame dialog = new JFrame();
// Will need to add this to each frame...
dialog.setAlwaysOnTop(true);
dialog.setContentPane(new InstallPane());
dialog.pack();
dialog.setLocationRelativeTo(frame);
dialog.setVisible(true);
代码示例来源:origin: PsiLupan/MakeLobbiesGreatAgain
frame.setFocusableWindowState(true);
代码示例来源:origin: stackoverflow.com
frame.setFocusableWindowState(true);
return false;
代码示例来源:origin: com.metsci.glimpse/glimpse-docking
frame.setFocusableWindowState( false );
frame.setAlwaysOnTop( true );
frame.setFocusable( false );
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
d.setFocusableWindowState(false);
PreferencesUtil.installPalettePrefsHandler(prefs, "toolbar." + i, d, x);
x += d.getWidth();
代码示例来源:origin: de.sciss/scisslib
public void setAlwaysOnTop( boolean b )
{
if( b != alwaysOnTop ) {
if( tft != null ) {
tft.dispose();
tft = null;
}
if( GUIUtil.setAlwaysOnTop( w.getWindow(), true )) {
if( alwaysOnTop && w.isVisible() ) w.toFront();
final JFrame jf = (JFrame) w.getWindow();
jf.setFocusableWindowState( false );
// now track components that need to be focussed
tft = new TemporaryFocusTracker( jf );
repaint();
}
}
}
代码示例来源:origin: stackoverflow.com
if (popupMenu == null) {
popupMenu = new JFrame();
popupMenu.setFocusableWindowState(false);
popupMenu.setUndecorated(true);
popupMenu.setContentPane(createPopupWindowContentPane());
内容来源于网络,如有侵权,请联系作者删除!