void (ObservableStateListener.PropertyChangeEvent event) { assertIsDispatchThread(); Object newValue = event.getNewValue(); if (!(newValue instanceof Boolean)) { LOG.error("newValue is not Boolean. property name = " + event.getPropertyName() + ", newValue = " + newValue); return; } boolean newValueBoolean = (boolean)newValue; myScrollPane.setFocusable(!newValueBoolean); myEditorComponent.setFocusCycleRoot(!newValueBoolean); myEditorComponent.setFocusable(newValueBoolean); }