JFrame: Using panel and frame minimize and maximize

What should you do when you have a foundation as FrameView not the Frame. There comes a situation when you would need to hide or minimize this panel. the normal way of calling setVisible(true) might not work. You would need to use or call JFrame inside a method or action:

JFrame mainFrame = PostItApp.getApplication().getMainFrame();
mainFrame.setVisible(false);
This would surely be of use to people using netbeans to develop desktop applications since most applications use frameview over there.

In

Leave a Reply

Your email address will not be published. Required fields are marked *