public static String getSizeVariant ( JComponent c ) { String sizeVariant = System . getProperty ( "JComponent.sizeVariant" ) ; String componentSizeVariant = ( String ) c . getClientProperty ( "JComponent.sizeVariant" ) ; if ( componentSizeVariant != null ) { sizeVariant = componentSizeVariant ; } return sizeVariant ; }
Gets the size variant that is applicable for the given component .