I'm having trouble setting the size of my Container. From the code below, when I place Container gamePane in a resizable JFrame and expand the frame, the spacing of the gamePane's contents expands to match the size of the frame despite my various attempts to keep the gameFrame at a set size.
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
> when I place Container gamePane in a resizable JFrame and expand the frame, the spacing of the gamePane's contents expands to match the size of the frame
if you're adding it via the frame's default layoutManager (BorderLayout), it will always occupy all the space.