本文整理了Java中javax.swing.JButton.isSelected()
方法的一些代码示例,展示了JButton.isSelected()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JButton.isSelected()
方法的具体详情如下:
包路径:javax.swing.JButton
类名称:JButton
方法名:isSelected
暂无
代码示例来源:origin: runelite/runelite
boolean doClose = currentButton != null && currentButton == jButton && currentButton.isSelected();
代码示例来源:origin: org.activecomponents.jadex/jadex-runtimetools-swing
public void itemStateChanged(ItemEvent e)
{
//System.out.println(plugin.getName()+" :"+button.isSelected());
button.setIcon(pl.getToolIcon(button.isSelected()));
}
});
代码示例来源:origin: net.sourceforge.jadex/jadex-runtimetools-swing
public void itemStateChanged(ItemEvent e)
{
//System.out.println(plugin.getName()+" :"+button.isSelected());
button.setIcon(pl.getToolIcon(button.isSelected()));
}
});
代码示例来源:origin: worstcase/gumshoe
@Override
public void mouseClicked(MouseEvent e) {
if( ! sendNow.isSelected() && e.getClickCount()==2) {
int index = reportList.locationToIndex(e.getPoint());
final Report selected = (Report)reportModel.getElementAt(index);
if(selected!=null) {
relayStats(selected);
}
}
}
});
代码示例来源:origin: stackoverflow.com
if (button.isSelected()) {
System.out.println(button);
内容来源于网络,如有侵权,请联系作者删除!