private boolean isParentLeftToRight ( ) { if ( rootParent instanceof JFrame ) { return SeaGlassLookAndFeel . isLeftToRight ( ( JFrame ) rootParent ) ; } else if ( rootParent instanceof JDialog ) { return SeaGlassLookAndFeel . isLeftToRight ( ( JDialog ) rootParent ) ; } else { return false ; } }
Is the parent window laid out left - to - right?