private boolean isPaintLineSeperators ( JComponent c ) { boolean paintLines = c instanceof JTextArea ; // Global settings String globalOverride = System . getProperty ( "SeaGlass.JTextArea.drawLineSeparator" ) ; if ( globalOverride != null && globalOverride . length ( ) > 0 ) { paintLines = Boolean . valueOf ( globalOverride ) ; } // Settings per component Boolean overrideProperty = ( Boolean ) c . getClientProperty ( "SeaGlass.JTextArea.drawLineSeparator" ) ; if ( overrideProperty != null ) { paintLines = overrideProperty ; } return paintLines ; }
Test if we should also paint the line seperators .