Skip to main content



      Home
Home » Eclipse Projects » WindowBuilder » Creating Radio Button Groups(How does one create a Radio Button group using WindowBuilder)
Creating Radio Button Groups [message #766883] Fri, 16 December 2011 10:42 Go to next message
Eclipse UserFriend
I'm a Window Builder Newbie and I cannot figure out how to create a group of radio buttons.

I'm using the Swing Data Binding Example found in Google Code. ( I'd post a link but the system won't let me.)

I'd like to add a simple Yes/No Radio button to the Person form.

The form is laid out using a GridBag layout.

I am not using the Pro Version of WindowBuilder.

I've searched on-line for an answer, But I haven't found anything. Maybe its so simple no one has blogged about it.

Thanks for any help.

-- Jeff
Re: Creating Radio Button Groups [message #766887 is a reply to message #766883] Fri, 16 December 2011 10:46 Go to previous messageGo to next message
Eclipse UserFriend
RTFM

http://docs.oracle.com/javase/tutorial/uiswing/components/button.html#radiobutton
Re: Creating Radio Button Groups [message #766892 is a reply to message #766887] Fri, 16 December 2011 10:54 Go to previous messageGo to next message
Eclipse UserFriend
Wow. Thanks! So Helpful!

If you read my post you would see that I was asking how to create a Radio Button Group using WindowBuilder.

Should have known that some senior member lurker would have flamed my first post WITHOUT EVEN READING IT.



Re: Creating Radio Button Groups [message #766897 is a reply to message #766892] Fri, 16 December 2011 11:03 Go to previous messageGo to next message
Eclipse UserFriend
No Message Body
Re: Creating Radio Button Groups [message #766905 is a reply to message #766897] Fri, 16 December 2011 11:16 Go to previous messageGo to next message
Eclipse UserFriend
Perfect, Thanks!

That's exactly what I needed.

-- Jeff
Re: Creating Radio Button Groups [message #1470075 is a reply to message #766905] Tue, 11 November 2014 23:14 Go to previous messageGo to next message
Eclipse UserFriend
i just tried as the screenshot showed, but i do not get this drop down menu.
I know in Nebula you have a widget, but in Nebula i cannot change the radio look to checkbox look
  • Attachment: Snap1.jpg
    (Size: 33.30KB, Downloaded 1419 times)
Re: Creating Radio Button Groups [message #1471309 is a reply to message #1470075] Wed, 12 November 2014 21:11 Go to previous messageGo to next message
Eclipse UserFriend
I'm not sure what you are trying to do or what you expect to see. You are piggybacking on a very old thread here.
Re: Creating Radio Button Groups [message #1471384 is a reply to message #1471309] Wed, 12 November 2014 22:42 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eric
Yeah I saw. I use nebula for the radio button group in mean time, works great so far.
Actually i tried to use a checkbox instead of radio button, only one of the checkboxes in a group can be used. checkbox should behave as radio button. it is a customer req, that he wants checkbox instead of radio button.
So far I did not manage to create a checkbox group in SWT and i really do not want to use AWT in SWT.
Found no snippets regarding this and hints only in Swing and AWT.
Re: Creating Radio Button Groups [message #1473574 is a reply to message #1471384] Fri, 14 November 2014 14:08 Go to previous message
Eclipse UserFriend
In SWT, radiobuttons automatically form a 1-of-m group within the same parent. Checkboxes are independent as expected. It sounds like you want chekcboxes that act like radiobuttons. You aren't going to get that by default in SWT (since that is not the expected platform behavior). You can do it easily enough by adding your own logic / event handlers.
Previous Topic:Break Points
Next Topic:RAP compatibility
Goto Forum:
  


Current Time: Fri Jul 25 17:49:55 EDT 2025

Powered by FUDForum. Page generated in 0.06968 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top