本文整理了Java中javax.swing.JCheckBox.setAction()
方法的一些代码示例,展示了JCheckBox.setAction()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JCheckBox.setAction()
方法的具体详情如下:
包路径:javax.swing.JCheckBox
类名称:JCheckBox
方法名:setAction
暂无
代码示例来源:origin: openpnp/openpnp
chckbxGray.setAction(action);
panel.add(chckbxGray);
代码示例来源:origin: edu.stanford.protege/explanation-workbench
private void createUI() {
setLayout(new BorderLayout(2, 2));
JPanel headerPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
JLabel label = new JLabel("Explanation " + explanationNumber);
headerPanel.add(label);
displayLaconicCheckBox.setFont(displayLaconicCheckBox.getFont().deriveFont(10.0f));
displayLaconicCheckBox.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0));
displayLaconicCheckBox.setAction(new AbstractAction("Display laconic explanation") {
public void actionPerformed(ActionEvent e) {
displayLaconicExplanation(displayLaconicCheckBox.isSelected());
}
});
if (workbenchManager.getWorkbenchSettings().getJustificationType().equals(JustificationType.LACONIC)) {
displayLaconicCheckBox.setEnabled(false);
}
headerPanel.add(displayLaconicCheckBox);
add(headerPanel, BorderLayout.NORTH);
JPanel displayHolder = new JPanel(new BorderLayout());
Border marginBorder = BorderFactory.createEmptyBorder(0, 20, 0, 0);
Border lineBorder = BorderFactory.createLineBorder(Color.LIGHT_GRAY);
displayHolder.setBorder(BorderFactory.createCompoundBorder(marginBorder, lineBorder));
displayHolder.add((JComponent) display);
add(displayHolder);
}
代码示例来源:origin: otros-systems/otroslogviewer
soapFormatterRemoveMultirefsCbx.setAction(enableMultiRefRemoveFeature);
enableMultiRefRemoveFeature.actionPerformed(null);
final JCheckBox soapFormatterRemoveXsiForNilElementsCbx = new JCheckBox();
soapFormatterRemoveXsiForNilElementsCbx.setAction(soapFormatterRemoveXsiFromNilAction);
soapFormatterRemoveXsiFromNilAction.actionPerformed(null);
menu.add(soapFormatterRemoveMultirefsCbx);
代码示例来源:origin: openpnp/openpnp
cbExp.setAction(action);
代码示例来源:origin: org.activecomponents.jadex/jadex-editor-bpmn
sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
expbox.setAction(new AbstractAction("Expression")
代码示例来源:origin: org.activecomponents.jadex/jadex-editor-bpmn
sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
expbox.setAction(new AbstractAction("Expression")
代码示例来源:origin: igvteam/igv
checkBoxShowAllChrs.setAction(showAllChromosomesCheckboxAction);
checkBoxShowAllChrs.setToolTipText("View regions from all chromosomes (otherwise, current chromosome only)");
checkBoxShowAllChrs.setSelected(true);
代码示例来源:origin: protegeproject/protege
checkBoxHolder.setBorder(BorderFactory.createEmptyBorder(1, 4, 4, 2));
holder.add(checkBoxHolder, BorderLayout.SOUTH);
cb.setAction(new AbstractAction("Synchronising") {
代码示例来源:origin: edu.stanford.protege/org.protege.editor.core.application
checkBoxHolder.setBorder(BorderFactory.createEmptyBorder(1, 4, 4, 2));
holder.add(checkBoxHolder, BorderLayout.SOUTH);
cb.setAction(new AbstractAction("Synchronising") {
代码示例来源:origin: org.protege/protege-editor-core-application
checkBoxHolder.setBorder(BorderFactory.createEmptyBorder(1, 4, 4, 2));
holder.add(checkBoxHolder, BorderLayout.SOUTH);
cb.setAction(new AbstractAction("Synchronising") {
代码示例来源:origin: net.sf.cuf/cuf-swing
private JCheckBox createCheckBox(Container pParent, Element pElement)
{
JCheckBox checkBox = (JCheckBox) mBuilder.getWidgetFactory().create(
JCheckBox.class.getName(), pElement, pParent);
// check if this button is buildNonVisual from an action
DispatcherAction action = getAction(pElement, mBuilder
.getNameToNonVisual());
if (action != null && action.isToggle())
{
checkBox.setAction(action);
checkBox.setModel(action.getToggleModel());
}
// check if this checkbox is enabled/disabled
Attribute enabledAttribute = pElement
.getAttribute(SwingXMLBuilder.ENABLED_ATTRIBUTE);
if (enabledAttribute != null)
{
boolean enabled = "true".equals(enabledAttribute.getValue());
checkBox.setEnabled(enabled);
}
// check if this checkbox is selected
Attribute selectedAttribute = pElement
.getAttribute(SwingXMLBuilder.SELECTED_ATTRIBUTE);
if (selectedAttribute != null)
{
boolean selected = "true".equals(selectedAttribute.getValue());
checkBox.setSelected(selected);
}
return checkBox;
}
代码示例来源:origin: org.activecomponents.jadex/jadex-editor-bpmn
cbox.setAction(new AbstractAction()
cbox.setAction(new AbstractAction()
cbox.setAction(new AbstractAction()
cbox.setAction(new AbstractAction()
cbox.setAction(new AbstractAction()
cbox.setAction(new AbstractAction()
代码示例来源:origin: org.activecomponents.jadex/jadex-editor-bpmn
JCheckBox defaultbox = new JCheckBox();
defaultbox.setSelected(getBpmnSequenceEdge().isDefault());
defaultbox.setAction(new AbstractAction()
代码示例来源:origin: tinyMediaManager/tinyMediaManager
cbFilterNewMovies.setAction(actionFilter);
add(cbFilterNewMovies, "2, 4");
cbFilterDuplicates.setAction(actionFilter);
add(cbFilterDuplicates, "2, 5");
cbFilterWatched.setAction(actionFilter);
add(cbFilterWatched, "2, 6");
cbFilterGenre.setAction(actionFilter);
add(cbFilterGenre, "2, 7");
cbFilterCertification.setAction(actionFilter);
add(cbFilterCertification, "2, 8");
cbFilterYear.setAction(actionFilter);
add(cbFilterYear, "2, 9");
cbFilterCast.setAction(actionFilter);
add(cbFilterCast, "2, 10");
cbFilterTag.setAction(actionFilter);
add(cbFilterTag, "2, 11");
cbFilterMovieset.setAction(actionFilter);
add(cbFilterMovieset, "2, 12");
cbFilterVideoFormat.setAction(actionFilter);
add(cbFilterVideoFormat, "2, 13");
代码示例来源:origin: tinyMediaManager/tinyMediaManager
cbFilterNewEpisodes.setAction(actionFilter);
add(cbFilterNewEpisodes, "2, 4");
cbFilterWatched.setAction(actionFilter);
cbFilterGenres.setAction(actionFilter);
cbFilterCast.setAction(actionFilter);
cbFilterTag.setAction(actionFilter);
cbFilterVideoFormat.setAction(actionFilter);
add(cbFilterVideoFormat, "2, 9");
cbFilterVideoCodec.setAction(actionFilter);
cbFilterAudioCodec.setAction(actionFilter);
cbFilterDatasource.setAction(actionFilter);
cbFilterMediaSource.setAction(actionFilter);
cbFilterMissingMetadata.setAction(actionFilter);
cbFilterMissingArtwork.setAction(actionFilter);
cbFilterMissingSubtitles.setAction(actionFilter);
代码示例来源:origin: org.activecomponents.jadex/jadex-editor-bpmn
externalcheckbox.setAction(new AbstractAction(BpmnEditor.getString("External"))
内容来源于网络,如有侵权,请联系作者删除!