本文整理了Java中javax.swing.JCheckBox.setRolloverEnabled()
方法的一些代码示例,展示了JCheckBox.setRolloverEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JCheckBox.setRolloverEnabled()
方法的具体详情如下:
包路径:javax.swing.JCheckBox
类名称:JCheckBox
方法名:setRolloverEnabled
暂无
代码示例来源:origin: stackoverflow.com
buttonGroup1.add(rispostaCom);
rispostaC.setEnabled(false);
rispostaC.setRolloverEnabled(false);
rispostaCom.setEnabled(false);
rispostaCom.setRolloverEnabled(false);
代码示例来源:origin: igniterealtime/Spark
private JPanel createCheckBoxes() {
JPanel panel = new JPanel();
panel.setLayout(new GridBagLayout());
panel.setBorder(BorderFactory.createTitledBorder(Res.getString("privacy.border.block")));
_blockPIn = new JCheckBox(Res.getString("privacy.label.pin.desc"));
_blockPIn.setIcon(SparkRes.getImageIcon("PRIVACY_PIN_ALLOW"));
_blockPIn.setSelectedIcon(SparkRes.getImageIcon("PRIVACY_PIN_DENY"));
_blockPIn.setRolloverEnabled(false);
_blockPOout = new JCheckBox(Res.getString("privacy.label.pout.desc"));
_blockPOout.setIcon(SparkRes.getImageIcon("PRIVACY_POUT_ALLOW"));
_blockPOout.setSelectedIcon(SparkRes.getImageIcon("PRIVACY_POUT_DENY"));
_blockPOout.setRolloverEnabled(false);
_blockMsg = new JCheckBox(Res.getString("privacy.label.msg.desc"));
_blockMsg.setSelectedIcon(SparkRes.getImageIcon("PRIVACY_MSG_DENY"));
_blockMsg.setIcon(SparkRes.getImageIcon("PRIVACY_MSG_ALLOW"));
_blockMsg.setRolloverEnabled(false);
_blockIQ = new JCheckBox(Res.getString("privacy.label.iq.desc"));
_blockIQ.setSelectedIcon(SparkRes.getImageIcon("PRIVACY_QUERY_DENY"));
_blockIQ.setIcon(SparkRes.getImageIcon("PRIVACY_QUERY_ALLOW"));
_blockIQ.setRolloverEnabled(false);
panel.add(_blockPIn, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
panel.add(_blockPOout, new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
panel.add(_blockMsg, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
panel.add(_blockIQ, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
return panel;
}
代码示例来源:origin: otros-systems/otroslogviewer
enabledCheckBox = new JCheckBox(Messages.getMessage("preview.enable"), true);
enabledCheckBox.setMnemonic(Messages.getMessage("preview.enable.mnemonic").charAt(0));
enabledCheckBox.setRolloverEnabled(true);
enabledCheckBox.addActionListener(new ActionListener() {
@Override
内容来源于网络,如有侵权,请联系作者删除!