Changeset 7851 for trunk/projects/slim-plugin/src
- Timestamp:
- 12/23/11 16:35:56 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/projects/slim-plugin/src/main/java/imagej/slim/histogram/UIPanel.java
r7847 r7851 105 105 add(_autoRangeCheckBox); 106 106 107 _combineChannelsCheckBox = 108 new JCheckBox("Combine Channels", _combineChannels); 109 _combineChannelsCheckBox.addItemListener( 110 new ItemListener() { 111 public void itemStateChanged(ItemEvent e) { 112 _combineChannels = _combineChannelsCheckBox.isSelected(); 113 if (null != _listener) { 114 _listener.setCombineChannels(_combineChannels); 115 } 116 } 117 } 118 ); 107 119 if (hasChannels) { 108 _combineChannelsCheckBox =109 new JCheckBox("Combine Channels", _combineChannels);110 _combineChannelsCheckBox.addItemListener(111 new ItemListener() {112 public void itemStateChanged(ItemEvent e) {113 _combineChannels = _combineChannelsCheckBox.isSelected();114 if (null != _listener) {115 _listener.setCombineChannels(_combineChannels);116 }117 }118 }119 );120 120 add(_combineChannelsCheckBox); 121 122 _displayChannelsCheckBox = 123 new JCheckBox("Display Channels", _displayChannels); 124 _displayChannelsCheckBox.addItemListener( 125 new ItemListener() { 126 public void itemStateChanged(ItemEvent e) { 127 _displayChannels = _displayChannelsCheckBox.isSelected(); 128 if (null != _listener) { 129 _listener.setDisplayChannels(_displayChannels); 130 } 131 } 132 } 133 ); 121 } 122 123 _displayChannelsCheckBox = 124 new JCheckBox("Display Channels", _displayChannels); 125 _displayChannelsCheckBox.addItemListener( 126 new ItemListener() { 127 public void itemStateChanged(ItemEvent e) { 128 _displayChannels = _displayChannelsCheckBox.isSelected(); 129 if (null != _listener) { 130 _listener.setDisplayChannels(_displayChannels); 131 } 132 } 133 } 134 ); 135 if (hasChannels) { 134 136 add(_displayChannelsCheckBox); 135 137 }
Note: See TracChangeset
for help on using the changeset viewer.