public void hide() { super.hide(); /** * We need to call removeNotify() here because hide() does something only if Component.visible * is true. When the app frame is miniaturized, the parent frame of this frame is invisible, * causing AWT to believe that this frame is invisible and causing hide() to do nothing */ removeNotify(); }
public void show() { super.show(); this.pack(); }