if (isDefaultLookAndFeelDecorated() && UIManager.getLookAndFeel().getSupportsWindowDecorations()) { setUndecorated(true); getRootPane().setWindowDecorationStyle(JRootPane.FRAME); }
    protected  void frameInit()    {      super.setLayout(new BorderLayout(1, 1));      enableEvents(AWTEvent.WINDOW_EVENT_MASK);      getRootPane(); // will do set/create    // We're now done the init stage.    setRootPaneCheckingEnabled(true);    }