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

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

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

JCheckBox.requestFocusInWindow介绍

暂无

代码示例

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

@Override
  public void focus() {
    checkBox.requestFocusInWindow();

  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-swingapp

@Override
  public void keyPressed(KeyEvent ev) {
    win.setVisible(false);
    win.dispose();
    resourceCheckBox.requestFocusInWindow();
  }
});

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-swingapp

@Override
  public void mousePressed(MouseEvent ev) {
    win.setVisible(false);
    win.dispose();
    resourceCheckBox.requestFocusInWindow();
  }
});

代码示例来源:origin: org.zaproxy/zap

checkBoxEnabledProtocol.requestFocusInWindow();
throw new IllegalArgumentException(
    Constant.messages.getString("generic.options.panel.security.protocols.error.no.protocols.selected"));
checkBoxEnabledProtocol.requestFocusInWindow();
throw new IllegalArgumentException(
    Constant.messages.getString("generic.options.panel.security.protocols.error.just.sslv2hello.selected"));

代码示例来源:origin: RPTools/maptool

@Override
  public void stateChanged(ChangeEvent e) {
    final JTabbedPane source = (JTabbedPane) e.getSource();
    final String tabName = source.getTitleAt(source.getSelectedIndex());
    if (jbLaunch.isEnabled()) {
      jbLaunch.requestFocusInWindow();
    } else {
      if (tabName.equals(CopiedFromOtherJars.getText("msg.tab.basic"))) { //$NON-NLS-1$
        jbMTJar.requestFocusInWindow();
      } else if (tabName.equals(CopiedFromOtherJars.getText("msg.tab.language"))) { //$NON-NLS-1$
        // This should work as long as there's at least one language in the list.
        langGroup.getElements().nextElement().requestFocusInWindow();
      } else if (tabName.equals(CopiedFromOtherJars.getText("msg.tab.advanced"))) { //$NON-NLS-1$
        jcbConsole.requestFocusInWindow();
        jtfArgs.setText(extraArgs);
      } else {
        jcbEnableAssertions.requestFocusInWindow();
      }
    }
  }
});

相关文章

JCheckBox类方法