private Insets getParentInsets ( ) { if ( rootParent instanceof JApplet ) { return ( ( JApplet ) rootParent ) . getInsets ( ) ; } return ( ( Window ) rootParent ) . getInsets ( ) ; }
Get the parent insets .