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.