com.sun.java.swing.action.StateChangeAction Java Examples
The following examples show how to use
com.sun.java.swing.action.StateChangeAction.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CommonMenuBar.java From hottub with GNU General Public License v2.0 | 5 votes |
protected void addRadioButtonMenuItem(JMenu menu, ButtonGroup group, StateChangeAction a, boolean selected) { JRadioButtonMenuItem mi = new JRadioButtonMenuItem(a); mi.addItemListener(a); mi.setSelected(selected); menu.add(mi); if(group != null) group.add(mi); configureToggleMenuItem(mi, a); }
Example #2
Source File: CommonToolBar.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected void addToggleButton(StateChangeAction a, ButtonGroup group) { JToggleButton button = new JToggleButton(a); button.addItemListener(a); button.setSelected(a.isSelected()); if(group != null) group.add(button); add(button); configureToggleButton(button, a); }
Example #3
Source File: CommonMenuBar.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
protected void addCheckBoxMenuItem(JMenu menu, StateChangeAction a, boolean selected) { JCheckBoxMenuItem mi = new JCheckBoxMenuItem(a); mi.addItemListener(a); mi.setSelected(selected); menu.add(mi); configureToggleMenuItem(mi, a); }
Example #4
Source File: CommonMenuBar.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
protected void addRadioButtonMenuItem(JMenu menu, ButtonGroup group, StateChangeAction a, boolean selected) { JRadioButtonMenuItem mi = new JRadioButtonMenuItem(a); mi.addItemListener(a); mi.setSelected(selected); menu.add(mi); if(group != null) group.add(mi); configureToggleMenuItem(mi, a); }
Example #5
Source File: CommonToolBar.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
protected void addToggleButton(StateChangeAction a, ButtonGroup group) { JToggleButton button = new JToggleButton(a); button.addItemListener(a); button.setSelected(a.isSelected()); if(group != null) group.add(button); add(button); configureToggleButton(button, a); }
Example #6
Source File: CommonMenuBar.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected void addCheckBoxMenuItem(JMenu menu, StateChangeAction a, boolean selected) { JCheckBoxMenuItem mi = new JCheckBoxMenuItem(a); mi.addItemListener(a); mi.setSelected(selected); menu.add(mi); configureToggleMenuItem(mi, a); }
Example #7
Source File: CommonMenuBar.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected void addRadioButtonMenuItem(JMenu menu, ButtonGroup group, StateChangeAction a, boolean selected) { JRadioButtonMenuItem mi = new JRadioButtonMenuItem(a); mi.addItemListener(a); mi.setSelected(selected); menu.add(mi); if(group != null) group.add(mi); configureToggleMenuItem(mi, a); }
Example #8
Source File: CommonToolBar.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected void addToggleButton(StateChangeAction a, ButtonGroup group) { JToggleButton button = new JToggleButton(a); button.addItemListener(a); button.setSelected(a.isSelected()); if(group != null) group.add(button); add(button); configureToggleButton(button, a); }
Example #9
Source File: CommonMenuBar.java From hottub with GNU General Public License v2.0 | 5 votes |
protected void addCheckBoxMenuItem(JMenu menu, StateChangeAction a, boolean selected) { JCheckBoxMenuItem mi = new JCheckBoxMenuItem(a); mi.addItemListener(a); mi.setSelected(selected); menu.add(mi); configureToggleMenuItem(mi, a); }
Example #10
Source File: CommonMenuBar.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected void addCheckBoxMenuItem(JMenu menu, StateChangeAction a, boolean selected) { JCheckBoxMenuItem mi = new JCheckBoxMenuItem(a); mi.addItemListener(a); mi.setSelected(selected); menu.add(mi); configureToggleMenuItem(mi, a); }
Example #11
Source File: CommonToolBar.java From hottub with GNU General Public License v2.0 | 5 votes |
protected void addToggleButton(StateChangeAction a, ButtonGroup group) { JToggleButton button = new JToggleButton(a); button.addItemListener(a); button.setSelected(a.isSelected()); if(group != null) group.add(button); add(button); configureToggleButton(button, a); }
Example #12
Source File: CommonMenuBar.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
protected void addCheckBoxMenuItem(JMenu menu, StateChangeAction a, boolean selected) { JCheckBoxMenuItem mi = new JCheckBoxMenuItem(a); mi.addItemListener(a); mi.setSelected(selected); menu.add(mi); configureToggleMenuItem(mi, a); }
Example #13
Source File: CommonMenuBar.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
protected void addRadioButtonMenuItem(JMenu menu, ButtonGroup group, StateChangeAction a, boolean selected) { JRadioButtonMenuItem mi = new JRadioButtonMenuItem(a); mi.addItemListener(a); mi.setSelected(selected); menu.add(mi); if(group != null) group.add(mi); configureToggleMenuItem(mi, a); }
Example #14
Source File: CommonToolBar.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
protected void addToggleButton(StateChangeAction a, ButtonGroup group) { JToggleButton button = new JToggleButton(a); button.addItemListener(a); button.setSelected(a.isSelected()); if(group != null) group.add(button); add(button); configureToggleButton(button, a); }
Example #15
Source File: CommonMenuBar.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected void addCheckBoxMenuItem(JMenu menu, StateChangeAction a, boolean selected) { JCheckBoxMenuItem mi = new JCheckBoxMenuItem(a); mi.addItemListener(a); mi.setSelected(selected); menu.add(mi); configureToggleMenuItem(mi, a); }
Example #16
Source File: CommonMenuBar.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected void addRadioButtonMenuItem(JMenu menu, ButtonGroup group, StateChangeAction a, boolean selected) { JRadioButtonMenuItem mi = new JRadioButtonMenuItem(a); mi.addItemListener(a); mi.setSelected(selected); menu.add(mi); if(group != null) group.add(mi); configureToggleMenuItem(mi, a); }
Example #17
Source File: CommonToolBar.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected void addToggleButton(StateChangeAction a, ButtonGroup group) { JToggleButton button = new JToggleButton(a); button.addItemListener(a); button.setSelected(a.isSelected()); if(group != null) group.add(button); add(button); configureToggleButton(button, a); }
Example #18
Source File: CommonMenuBar.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
protected void addCheckBoxMenuItem(JMenu menu, StateChangeAction a, boolean selected) { JCheckBoxMenuItem mi = new JCheckBoxMenuItem(a); mi.addItemListener(a); mi.setSelected(selected); menu.add(mi); configureToggleMenuItem(mi, a); }
Example #19
Source File: CommonMenuBar.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected void addRadioButtonMenuItem(JMenu menu, ButtonGroup group, StateChangeAction a, boolean selected) { JRadioButtonMenuItem mi = new JRadioButtonMenuItem(a); mi.addItemListener(a); mi.setSelected(selected); menu.add(mi); if(group != null) group.add(mi); configureToggleMenuItem(mi, a); }
Example #20
Source File: CommonMenuBar.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
protected void addRadioButtonMenuItem(JMenu menu, ButtonGroup group, StateChangeAction a, boolean selected) { JRadioButtonMenuItem mi = new JRadioButtonMenuItem(a); mi.addItemListener(a); mi.setSelected(selected); menu.add(mi); if(group != null) group.add(mi); configureToggleMenuItem(mi, a); }
Example #21
Source File: CommonMenuBar.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected void addCheckBoxMenuItem(JMenu menu, StateChangeAction a, boolean selected) { JCheckBoxMenuItem mi = new JCheckBoxMenuItem(a); mi.addItemListener(a); mi.setSelected(selected); menu.add(mi); configureToggleMenuItem(mi, a); }
Example #22
Source File: CommonMenuBar.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected void addRadioButtonMenuItem(JMenu menu, ButtonGroup group, StateChangeAction a, boolean selected) { JRadioButtonMenuItem mi = new JRadioButtonMenuItem(a); mi.addItemListener(a); mi.setSelected(selected); menu.add(mi); if(group != null) group.add(mi); configureToggleMenuItem(mi, a); }
Example #23
Source File: CommonToolBar.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected void addToggleButton(StateChangeAction a, ButtonGroup group) { JToggleButton button = new JToggleButton(a); button.addItemListener(a); button.setSelected(a.isSelected()); if(group != null) group.add(button); add(button); configureToggleButton(button, a); }
Example #24
Source File: CommonToolBar.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
protected void addToggleButton(StateChangeAction a, ButtonGroup group) { JToggleButton button = new JToggleButton(a); button.addItemListener(a); button.setSelected(a.isSelected()); if(group != null) group.add(button); add(button); configureToggleButton(button, a); }
Example #25
Source File: CommonToolBar.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
protected void addToggleButton(StateChangeAction a) { addToggleButton(a, null); }
Example #26
Source File: CommonMenuBar.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
protected void addCheckBoxMenuItem(JMenu menu, StateChangeAction a) { addCheckBoxMenuItem(menu, a, false); }
Example #27
Source File: CommonMenuBar.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
protected void addCheckBoxMenuItem(JMenu menu, StateChangeAction a) { addCheckBoxMenuItem(menu, a, false); }
Example #28
Source File: CommonMenuBar.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
protected void addRadioButtonMenuItem(JMenu menu, ButtonGroup group, StateChangeAction a) { addRadioButtonMenuItem(menu, group, a, false); }
Example #29
Source File: CommonToolBar.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
protected void addToggleButton(StateChangeAction a) { addToggleButton(a, null); }
Example #30
Source File: CommonMenuBar.java From hottub with GNU General Public License v2.0 | 4 votes |
protected void addRadioButtonMenuItem(JMenu menu, ButtonGroup group, StateChangeAction a) { addRadioButtonMenuItem(menu, group, a, false); }