void (State state) { State oldState = myState; myState = state; String value = state == State.DONT_CARE ? "indeterminate" : null; putClientProperty("JButton.selectedState", value); firePropertyChange(THREE_STATE_CHECKBOX_STATE, oldState, state); repaint(); }