File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes GridBag radio button elements Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "GridBag radio button elements" Watch "GridBag radio button elements" New topic

GridBag radio button elements

Mary Taylor
Ranch Hand

Joined: Sep 11, 2000
Posts: 327
What should I look at when trying to add another radio button to a panel in a GridBag layout? The screen is not allowed to grow; and, as it is now, adding another radio button causes vital information to disappear off the bottom of the screen.

I'm faced with a redesign of the entire window or causing these radio buttons to be closer together vertically. The Insets currently are (0,0,0,0) .

Thanks for suggestions as to approaches I might take for this.
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
... redesign of the entire window ...
Sometimes this is a good thing.
Placing the parent container (of the JRadioButtons) in a JScrollPane is another option.
I agree. Here's the link:
subject: GridBag radio button elements
It's not a secret anymore!