This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I have a class that extends JFrame and JPanel, JTabbedPane, JButtons etc.. are added to it. I am using classname.setSize(500,500). But when I maximize the window manually or resize the window the size of the contents in the frame are changing. Is there a way to set the size of the frame and its components to be constant all the time. I tried to use the same method on the components as well. But the problem still persists. Tried using pack(). But didn't work the way I want it. Please let me know if there is any way to set the fixed size. Thanks in advance.