コード例 #1
0
  public void setValueIn(final Component comp) {
    //			SwingUtilities.invokeAndWait(new Runnable() {

    //				public void run() {
    JToggleButton fl = (JToggleButton) comp;
    if (log.isLoggable(Level.INFO)) {
      log.info("pref:" + pref + ", def=" + def + ", val=" + pr.getBoolean(pref, def));
    }
    fl.setSelected(pr.getBoolean(pref, def));
    //				}
    //			});
  }
コード例 #2
0
 public boolean prepare(Component comp) {
   JToggleButton fl = (JToggleButton) comp;
   val = fl.isSelected();
   return true;
 }