Although this is for a game i believe it is more relavent in this section of the forum. I'm wanting to create an options screen for a game I am creating. I wish to use buttons and radio buttons. Is there a way to put these in the middle area of the frame created? I only seem to be able to place buttons in panels, and if i place them in the middle of the frame, they resize themselves to fill the entire frame, even when i use the .setSize() method.
You may have already discovered that - in addition to needing panels - you will need to arrange the components inside of other containers with particular layout managers ... I would suggest using gridbag layout ... You may want to research the Sun docs on this ... it will also explain how containers like JPanel are necessary for organizing other swing components in the frame. good luck!