Java Swing set “actual” Frame size (inside)?

I have a JFrame which contains just one JPanel. I have tried setting the Panel's size and packing the frame, but tha...