public void setComponentConstraints ( JComponent component ) { GridBagConstraints c = this . getGBConstraints ( ) ; GridBagLayout gridbag = ( GridBagLayout ) this . getScreenLayout ( ) ; gridbag . setConstraints ( component , c ) ; Application application = BaseApplet . getSharedInstance ( ) . getApplication ( ) ; MuffinManager muffinManager = application . getMuffinManager ( ) ; if ( component instanceof JTextComponent ) if ( muffinManager != null ) { muffinManager . replaceClipboardAction ( component , "cut" ) ; muffinManager . replaceClipboardAction ( component , "copy" ) ; muffinManager . replaceClipboardAction ( component , "paste" ) ; } }
Set the constraints for this component . If you aren t using gridbag override this .