void (ObservableStateListener.PropertyChangeEvent event) { assertIsDispatchThread(); Object newValue = event.getNewValue(); if (!(newValue instanceof Integer)) { LOG.error("newValue is not Integer. property name = " + event.getPropertyName() + ", newValue = " + newValue); return; } int currentHorOffset = myScrollingModel.getHorizontalScrollOffset(); myScrollPane.putClientProperty(JBScrollPane.Flip.class, (int)newValue == VERTICAL_SCROLLBAR_LEFT ? JBScrollPane.Flip.HORIZONTAL : null); myScrollingModel.scrollHorizontally(currentHorOffset); }