Questions tagged [jradiobutton]

JRadioButton is the Java Swing implementation of a radio button.

JRadioButton is a Java implementation of a radio button -- an item that can be selected or deselected, and which displays its state to the user. Used with a ButtonGroup object to create a group of buttons in which only one button at a time can be selected.

Relevant tutorials:

445 questions
0
votes
1 answer

How use ActionListener in JRadioButtons

I want to do a very simply "Paint" in Java. Now i have troubles because i dont know how to use the actionListener in the JRaddioButtons to change the colors of the line that i want to draw. I show my code, sorry if is too large: import…
Mueretee
  • 550
  • 2
  • 4
  • 16
0
votes
2 answers

using JList of Swing

I have a 3 Jlist, the first contain the name of application. the second is used to put the name of application to install, the third the name of application to uninstall. but it is not beautiful. I would like to have one list with two list of radio…
diez
  • 125
  • 1
  • 5
  • 12
0
votes
1 answer

Replacing a JButton in java

I'm not sure how I can go about replacing a JButton with a JRadioButton when the JButton is clicked. So say if I had Jpanel set as a gridlayout which lays out 4 rows (3 JLabels and a JButton). So when the user clicks the JButton, that JButton will…
Douglas Grealis
  • 599
  • 2
  • 11
  • 25
0
votes
2 answers

JRadioButton Input not responding

i'm new to Java, and programming in general.I am trying an exercise where i create radio buttons which change the background colour when selected.At the moment i am using Eclipse IDE. Eclipse is not giving me any errors and i can run the b/m program…
Kenneth .J
  • 1,433
  • 8
  • 27
  • 49
0
votes
1 answer

Editing Radio Button in Java

I have GUI screen which lets you set the privacy of a Contact from a selection being made through RadioButton. Although I can add the selection to the database like this... private void addContactButtonActionPerformed(java.awt.event.ActionEvent…
Hoody
  • 2,942
  • 5
  • 28
  • 32
0
votes
1 answer

Java JRadioButton

I have problem with this code when I click on file and click on new ,new panel comes to screen and when I want to change JRadioBox status to change Label status,Label status changes but also the panel goes away :( public class MainClass { …
0
votes
2 answers

Swing JRadioButton autoselect after get focus

I have three JRadioButtons in ButtonGroup. With keyboard navigation with TAB I can go through this JRadioButtons (change focus), with SPACE I can select JRadioButton with focus. Is it possible that with TAB will be changed not only focus but also…
1ac0
  • 2,875
  • 3
  • 33
  • 47
0
votes
1 answer

Why is my jradiobutton only taking once?

I didnt group my jradiobuttons so that users can select multiple choices and i can store in the nodes array..but it only reads once. What is wrong with the code? Please enlighten me private String[] showGUIForNodeDeletion() { JPanel panel =…
user2064467
  • 375
  • 1
  • 4
  • 13
0
votes
4 answers

Clicking on radiobutton gives old value?

I am quite new to java, so please don't be too harsh :) I have a JTable with a column with 3 JRadioButtons in each cell. The JRadioButtons display correctly, and the correct JRadioButtons are selected. To put the JRadioButtons in the JTable I use…
Hrqls
  • 2,944
  • 4
  • 34
  • 54
0
votes
2 answers

Selenium Webdriver C# why do I have to click twice to select radio button

Selenium Webdriver C#- why do I have to click twice to select radio button? Here is the code: weItem_TypeRadio = _driver.FindElement(By.CssSelector("input[name*='" + stcItemType + "'][value='HLP'][type='radio']") …
Remy
  • 407
  • 3
  • 17
0
votes
2 answers

Trouble with RadioButtons and booleans connection

Well its weird. I am not good with radiobuttons by the way. But I made a JPanel program in netbeans which includes a RadioButton. You enter all this information with JTextFields(no problem) and then lastly I had a JButton which you click the choice…
0
votes
1 answer

isSelected method for jRadioButton doesnt work

my isSelected method for the radio buttons are not working, even if i select them when i run the program, i am new to java gui coding so plz explain according to that, i am posting the whole gui's class code.And i am using eclipse swing designer …
Kanishka Jaiswal
  • 27
  • 1
  • 1
  • 5
0
votes
1 answer

listening to events on RadioButton in Scala Swing

how do i listen on events on a radiobutton in scala? i have the following code, but for some reason the reaction is not executed. this is a Dialog, and i am looking to listen on radiobutton selection, and to change the Dialog window's title…
Ehud Kaldor
  • 753
  • 1
  • 7
  • 20
0
votes
2 answers

How can I align RadioButtons in a JSplitPane?

I am trying to align the RadioButtons in my program here. Can someonee help me? I am not exactly sure how to go about it. I have searched here and elsewhere and cannnot seem to find an applicable example. Here is, what I believe the relevant portion…
Clint
  • 175
  • 1
  • 10
0
votes
1 answer

Radio Button under Action Listener

I want when I choose a radio button and click the execute button, I want my search result to return the result for author title and year. For example if I click on author and entered an author's name stored in the database, I want to get author,…
Programmer254
  • 41
  • 2
  • 5
  • 10