예제 #1
0
 @Override
 public void itemStateChanged(ItemEvent e) {
   Object source = e.getItemSelectable();
   CPArtwork artwork = controller.getArtwork();
   if (source == cbSampleAllLayers) {
     artwork.setSampleAllLayers(e.getStateChange() == ItemEvent.SELECTED);
   } else if (source == cbLockAlpha) {
     artwork.setLockAlpha(e.getStateChange() == ItemEvent.SELECTED);
   }
 }
예제 #2
0
파일: Options.java 프로젝트: TAChapman/Agh
 public void itemStateChanged(ItemEvent ev) {
   boolean selected = (ev.getStateChange() == ItemEvent.SELECTED);
   AbstractButton button = (AbstractButton) ev.getItemSelectable();
   String command = button.getActionCommand();
 }