javax.swing.JDialog.requestFocusInWindow()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(158)

本文整理了Java中javax.swing.JDialog.requestFocusInWindow()方法的一些代码示例,展示了JDialog.requestFocusInWindow()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDialog.requestFocusInWindow()方法的具体详情如下:
包路径:javax.swing.JDialog
类名称:JDialog
方法名:requestFocusInWindow

JDialog.requestFocusInWindow介绍

暂无

代码示例

代码示例来源:origin: MrCrayfish/ModelCreator

private static void showDialog(JDialog dialog)
{
  dialog.setLocationRelativeTo(null);
  dialog.setVisible(true);
  dialog.requestFocusInWindow();
}

代码示例来源:origin: poreid/poreid

@Override
  public void run() {
    if (null != infoMsg && !infoMsg.isEmpty()){
      UsePinPadDialogController.this.dialog = new UsePinPadDialog(pinOp,pin.getLabel(), pin.getBackground(), locale, infoMsg);
    } else {
      UsePinPadDialogController.this.dialog = new UsePinPadDialogSmall(pinOp,pin.getLabel(), pin.getSmallBackground(), locale);
    }
    UsePinPadDialogController.this.dialog.setAlwaysOnTop(true);
    UsePinPadDialogController.this.dialog.setVisible(true);
    UsePinPadDialogController.this.dialog.requestFocusInWindow();
  }
});

代码示例来源:origin: net.sf.ingenias/editor

self.requestFocusInWindow();
setLocation(dialogOwner.getLocation().x+getSize().width/2,dialogOwner.getLocation().y+	getSize().height/2);

代码示例来源:origin: triplea-game/triplea

dialog.pack();
dialog.setVisible(true);
dialog.requestFocusInWindow();
optionPane.addPropertyChangeListener(e -> {
 if (!dialog.isVisible()) {

代码示例来源:origin: triplea-game/triplea

dialog.pack();
dialog.setVisible(true);
dialog.requestFocusInWindow();
optionPane.addPropertyChangeListener(e -> {
 if (!dialog.isVisible()) {

代码示例来源:origin: triplea-game/triplea

dialog.pack();
dialog.setVisible(true);
dialog.requestFocusInWindow();
optionPane.addPropertyChangeListener(e -> {
 if (!dialog.isVisible()) {

代码示例来源:origin: poreid/poreid

@Override
  public void run() {
    if (null != infoMsg && !infoMsg.isEmpty()){
      dialog = new VerifyPinDialog(pin.getLabel(), pin.getBackground(), pin.getMinLength(), pin.getMaxLength(), locale, VerifyPinDialogController.this.listener, infoMsg);
    } else {
      dialog = new VerifyPinDialogSmall(pin.getLabel(), pin.getSmallBackground(), pin.getMinLength(), pin.getMaxLength(), locale, VerifyPinDialogController.this.listener);
    }
    dialog.setAlwaysOnTop(true);
    dialog.setVisible(true);
    dialog.requestFocusInWindow();
  }
});

相关文章

JDialog类方法