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)); // } // }); }
public boolean commit(Component comp) { pr.putBoolean(pref, val); return true; }