本文整理了Java中javax.swing.JDialog.setFocusableWindowState()
方法的一些代码示例,展示了JDialog.setFocusableWindowState()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDialog.setFocusableWindowState()
方法的具体详情如下:
包路径:javax.swing.JDialog
类名称:JDialog
方法名:setFocusableWindowState
暂无
代码示例来源:origin: chatty/chatty
@Override
public void run() {
d.setFocusableWindowState(true);
}
});
代码示例来源:origin: xyz.cofe/docking-frames-core
public void setPreventFocusStealing( boolean prevent ){
dialog.setFocusableWindowState( !prevent );
}
代码示例来源:origin: stackoverflow.com
JDialog dialog = new JDialog(...);
dialog.setFocusableWindowState( false );
...
dialog.setVisible( true );
代码示例来源:origin: stackoverflow.com
JDialog dialog = new JDialog(...);
dialog.setFocusableWindowState( false );
...
dialog.setVisible( true );
代码示例来源:origin: stackoverflow.com
JDialog dialog = new JDialog();
dialog.add(...);
dialog.pack();
dialog.setFocusableWindowState( false );
dialog.setVisible( true );
代码示例来源:origin: stackoverflow.com
JFrame dummyFrame = new MyJFrame();
JDialog myDialog = new JDialog(dummyFrame, true);
myDialog.setIconImage(dummyFrame.getIconImage()); // Not needed.
myDialog.setFocusableWindowState(false);
myDialog.setVisible(true);
代码示例来源:origin: jawi/ols
/**
* Creates a new message popup.
*
* @return the error message popup, never <code>null</code>.
*/
private JDialog createMessagePopup( final JComponent aComponent )
{
String message = getMessage();
if ( ( message == null ) || "".equals( message.trim() ) )
{
message = DEFAULT_MESSAGE;
}
final JDialog result = new JDialog( SwingComponentUtils.getOwningWindow( aComponent ) );
result.setFocusableWindowState( false );
result.setUndecorated( true );
final Container contentPane = result.getContentPane();
contentPane.setLayout( new FlowLayout() );
contentPane.add( new JLabel( ERROR_ICON ) );
contentPane.add( new JLabel( message ) );
return result;
}
代码示例来源:origin: biojava/biojava
private void init(){
autoSuggestProvider = new DefaultAutoSuggestProvider();
lastWord = "";
regular = getFont();
busy = new Font(getFont().getName(), Font.ITALIC, getFont().getSize());
suggestions = new Vector<String>();
defaultText = DEFAULT_TEXT;
dialog = new JDialog();
dialog.setUndecorated(true);
dialog.setFocusableWindowState(false);
dialog.setFocusable(false);
initSuggestionList();
}
代码示例来源:origin: stackoverflow.com
popup.getContentPane().add(new JLabel(errorMsg));
popup.setUndecorated(true);
popup.setFocusableWindowState(false);
popup.getContentPane().setBackground(Color.PINK);
popup.pack();
代码示例来源:origin: org.scijava/scijava-search
/** Called on the EDT when the search panel wants to appear. */
protected void showPanel(final Container panel) {
assertDispatchThread();
// create a dedicated "Quick Search" dialog
final Window w = window();
final JDialog dialog = new JDialog(w, "Quick Search");
dialog.setContentPane(panel);
dialog.pack();
// position below the parent window
final int x = w.getLocation().x;
final int y = w.getLocation().y + w.getHeight() + 1;
dialog.setLocation(x, y);
dialog.setFocusableWindowState(false);
threadService.queue(() -> {
dialog.setVisible(true);
try { Thread.sleep(100); }
catch (InterruptedException exc) {}
grabFocus();
requestFocus();
dialog.setFocusableWindowState(true);
});
}
代码示例来源:origin: HearthStats/HearthStats.net-Uploader
frame.setFocusableWindowState(allowFocus);
代码示例来源:origin: chatty/chatty
final JDialog d = p.createDialog(parent, title);
d.setAutoRequestFocus(false);
d.setFocusableWindowState(false);
代码示例来源:origin: stackoverflow.com
paletteWindow.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
paletteWindow.setResizable(false);
paletteWindow.setFocusableWindowState(false);
paletteWindow.setBounds(1024, 0, 320, 768);
代码示例来源:origin: MegaMek/mekhq
d = new JDialog(owner);
d.setUndecorated(true);
d.setFocusableWindowState(false);
d.setFocusable(false);
list = new JList<String>();
内容来源于网络,如有侵权,请联系作者删除!