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 prepare(Component comp) { JToggleButton fl = (JToggleButton) comp; val = fl.isSelected(); return true; }