Using frame.pack() for resizing JFrame

Printable View