jradiobutton

JRadioButton border/padding/insets/margin... whatever you call it

In my Java app I am trying to create a very simple form with a label and a set of controls on each row of the form. Imagine something like this crude ASCII diagram: Result 1: (*) pass ( ) fail Result 2: ( ) pass (*) fail Error Count: [10______] Explanation: [Operator overload___] Annoyingly the JRadioButtons don't line up wit...

how to use JRadioButton groups with a model

Is there any way to associate a group of JRadioButtons with a data model so it is easier to tell which button (if any) is selected? In an ideal world, I would like to associate a group of N radiobuttons with an enum class that has a NONE value and one value associated with each radiobutton. ...

How to manage two JRadioButtons in java so that only one of them can be selected at a time.

How to manage two JRadioButtons in java so that only one of them can be selected at a time? Is there any method in java to take care of this or you need to build your own logic? ...

Changing JRadioButton Icon on Windows 7

Hi I created a method which changes the icon of all jradiobuttons from a buttongroup: public void setRadioButtonIcons(final ButtonGroup gruppe){ Enumeration<AbstractButton> gruppeEnum = gruppe.getElements(); while (gruppeEnum.hasMoreElements()){ AbstractButton radio = gruppeEnum.nextElement(); Icon unselI...

JRadio button with information link

I want to have a set of JRadioButtons and next to each one a little 'i' image which when clicked will open a new window with information about the text next to the radio button. What is the best component to use to align the little 'i' label next to the Radio button? ...

Rich swing radiobutton

Developing a desktop application based on Java + Swing I faced the problem of creating a radio button which instead of text next to it, should have and image or, say, another widget like a spinner. Clicking on the image or the spinner should select also the corresponding radioButton. Is it possible? if so, how? ...

Java: What's the difference between ActionEvent and ItemEvent on a JRadioButton?

They're both raised once after the mouse button is released and both can have all the information available on the JRadioButton right? Is there any difference? ...