1 7 package com.sun.java.swing.plaf.nimbus; 8 9 import java.awt.*; 10 import javax.swing.*; 11 12 14 class SplitPaneVerticalState extends State { 15 SplitPaneVerticalState() { 16 super("Vertical"); 17 } 18 19 @Override protected boolean isInState(JComponent c) { 20 21 return c instanceof JSplitPane && (((JSplitPane)c).getOrientation() == 1); 22 } 23 } 24 25 | Popular Tags |