예제 #1
0
            public void actionPerformed(ActionEvent e) {
              blurItem.setEnabled(!disablingItem.isSelected());
              embossItem.setEnabled(!disablingItem.isSelected());
              busyPainterItem.setEnabled(!disablingItem.isSelected());

              blurUI.setLocked(disablingItem.isSelected());
              embossUI.setLocked(disablingItem.isSelected());
              busyPainterUI.setLocked(disablingItem.isSelected());
            }
예제 #2
0
 @Override
 public void setLocked(boolean isLocked) {
   super.setLocked(isLocked);
   if (isLocked) {
     timer.start();
   } else {
     timer.stop();
   }
 }