本文整理了Java中javax.swing.JToggleButton.isSelected()
方法的一些代码示例,展示了JToggleButton.isSelected()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JToggleButton.isSelected()
方法的具体详情如下:
包路径:javax.swing.JToggleButton
类名称:JToggleButton
方法名:isSelected
暂无
代码示例来源:origin: libgdx/libgdx
public void actionPerformed (ActionEvent event) {
advancedPanel.setVisible(advancedButton.isSelected());
}
});
代码示例来源:origin: libgdx/libgdx
public void actionPerformed (ActionEvent event) {
advancedPanel.setVisible(advancedButton.isSelected());
}
});
代码示例来源:origin: libgdx/libgdx
public void actionPerformed (ActionEvent event) {
advancedPanel.setVisible(advancedButton.isSelected());
}
});
代码示例来源:origin: libgdx/libgdx
public void actionPerformed (ActionEvent event) {
advancedPanel.setVisible(advancedButton.isSelected());
}
});
代码示例来源:origin: libgdx/libgdx
void updateActive () {
contentPanel.setVisible(activeButton.isSelected());
advancedPanel.setVisible(activeButton.isSelected() && advancedButton.isSelected());
advancedButton.setVisible(activeButton.isSelected() && hasAdvanced);
descriptionLabel.setText(activeButton.isSelected() ? description : "");
if (value != null) value.setActive(activeButton.isSelected());
}
代码示例来源:origin: libgdx/libgdx
void updateActive () {
contentPanel.setVisible(activeButton.isSelected());
advancedPanel.setVisible(activeButton.isSelected() && advancedButton.isSelected());
advancedButton.setVisible(activeButton.isSelected() && hasAdvanced);
descriptionLabel.setText(activeButton.isSelected() ? description : "");
if (value != null) value.setActive(activeButton.isSelected());
}
代码示例来源:origin: libgdx/libgdx
public void showContent (boolean visible) {
contentPanel.setVisible(visible);
advancedPanel.setVisible(visible && advancedButton.isSelected());
advancedButton.setVisible(visible && hasAdvanced);
descriptionLabel.setText(visible ? description : "");
}
代码示例来源:origin: libgdx/libgdx
public void showContent (boolean visible) {
contentPanel.setVisible(visible);
advancedPanel.setVisible(visible && advancedButton.isSelected());
advancedButton.setVisible(visible && hasAdvanced);
descriptionLabel.setText(visible ? description : "");
}
代码示例来源:origin: libgdx/libgdx
public void mouseClicked (MouseEvent event) {
if (!activeButton.isVisible()) return;
activeButton.setSelected(!activeButton.isSelected());
updateActive();
}
});
代码示例来源:origin: libgdx/libgdx
public void mouseClicked (MouseEvent event) {
if (!activeButton.isVisible()) return;
activeButton.setSelected(!activeButton.isSelected());
updateActive();
}
});
代码示例来源:origin: libgdx/libgdx
@Override
protected void activate () {
super.activate();
if (value != null) value.setActive(activeButton.isSelected());
}
}
代码示例来源:origin: libgdx/libgdx
@Override
protected void activate () {
super.activate();
if (value != null) value.setActive(activeButton.isSelected());
}
}
代码示例来源:origin: 4thline/cling
public void actionPerformed(ActionEvent e) {
presenter.onSwitchToggle(toggleButton.isSelected());
}
});
代码示例来源:origin: chewiebug/GCViewer
/**
* @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
*/
@Override
public void actionPerformed(ActionEvent e) {
if (e.getSource() == menuItemWatch) {
watchToggle.setSelected(menuItemWatch.getState());
}
else {
menuItemWatch.setState(watchToggle.isSelected());
}
}
代码示例来源:origin: 4thline/cling
public void actionPerformed(ActionEvent e) {
presenter.onMuteSelected(getInstanceId(), muteButton.isSelected());
}
});
代码示例来源:origin: kiegroup/optaplanner
indictmentHeatMapToggleButton.setToolTipText("Show indictment heat map");
indictmentHeatMapToggleButton.addActionListener(e -> {
boolean selected = indictmentHeatMapToggleButton.isSelected();
indictmentHeatMapToggleButton.setIcon(selected ?
indictmentHeatMapTrueIcon : indictmentHeatMapFalseIcon);
refreshScreenDuringSolvingToggleButton.setToolTipText("Refresh screen during solving");
refreshScreenDuringSolvingToggleButton.addActionListener(e -> {
refreshScreenDuringSolvingToggleButton.setIcon(refreshScreenDuringSolvingToggleButton.isSelected() ?
refreshScreenDuringSolvingTrueIcon : refreshScreenDuringSolvingFalseIcon);
});
代码示例来源:origin: kiegroup/optaplanner
public void bestSolutionChanged() {
Solution_ solution = solutionBusiness.getSolution();
Score score = solutionBusiness.getScore();
if (refreshScreenDuringSolvingToggleButton.isSelected()) {
solutionPanel.updatePanel(solution);
validate(); // TODO remove me?
}
refreshScoreField(score);
}
代码示例来源:origin: magefree/mage
public static void saveActiveFiltersToPrefs(String filterPrefKey, JToggleButton[] buttons) {
StringBuilder currentFilters = new StringBuilder();
for (JToggleButton component : buttons) {
currentFilters.append(component.isSelected() ? "x" : "-");
}
PreferencesDialog.saveValue(filterPrefKey, currentFilters.toString());
}
代码示例来源:origin: magefree/mage
private void btnStateFinishedActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnStateFinishedActionPerformed
if (this.btnStateFinished.isSelected()) {
this.jSplitPaneTables.setDividerLocation(-1);
} else {
this.jSplitPaneTables.setDividerLocation(this.jPanelTables.getHeight());
}
this.startTasks();
}//GEN-LAST:event_btnStateFinishedActionPerformed
代码示例来源:origin: magefree/mage
public void startTasks() {
if (SessionHandler.getSession() != null) {
if (updateTablesTask == null || updateTablesTask.isDone()) {
updateTablesTask = new UpdateTablesTask(roomId, this);
updateTablesTask.execute();
}
if (updatePlayersTask == null || updatePlayersTask.isDone()) {
updatePlayersTask = new UpdatePlayersTask(roomId, this.chatPanelMain);
updatePlayersTask.execute();
}
if (this.btnStateFinished.isSelected()) {
if (updateMatchesTask == null || updateMatchesTask.isDone()) {
updateMatchesTask = new UpdateMatchesTask(roomId, this);
updateMatchesTask.execute();
}
} else if (updateMatchesTask != null) {
updateMatchesTask.cancel(true);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!