Exemple #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());
            }
Exemple #2
0
 @Override
 public void setLocked(boolean isLocked) {
   super.setLocked(isLocked);
   if (isLocked) {
     timer.start();
   } else {
     timer.stop();
   }
 }