• Post Reply Bookmark Topic Watch Topic
  • New Topic

Options layout  RSS feed

 
Mark Lockery
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Any help is appreciated.
 
clio katz
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Mark Lockery
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you both, you've been very helpful
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!