Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding Pair of Radio Buttons in Limited Space  RSS feed

 
Dennis Putnam
Ranch Hand
Posts: 377
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JDialog using GridBagLayout that contains "rows" of various components. However, I need to add a pair of radio buttons to each "row" but I want the size of the pair together to be the same as the other components (i.e. the radio button pair should appear as a single component to the user). I'm guessing I need to put the pair of radio buttons in a container but what type container should I use and can I force that container to be the same size as all the other components? TIA.
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dennis Putnam wrote:what type container should I use


A JPanel.

can I force that container to be the same size as all the other components? TIA.


Don't see why not.
 
Dennis Putnam
Ranch Hand
Posts: 377
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I'll give it a try.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!