Java GUI Programming - Tutorial 7 (Radio Buttons) HD

preview_player
Показать описание
This is the sixth video from the Java GUI Programming tutorial series. This tutorials demonstrations how to use Radio Buttons in java.
Рекомендации по теме
Комментарии
Автор

It's easy when you do this using DND (Drag and Drop)

alster
Автор

Add action listener on your radio button and call getText method from radio button to return text.

OverG
Автор

I can definitely try to help as much as I can

kakashura
Автор

Thank you so much for this. It really helped me create my Radio Button. If only every other Java-based training was this clear.

Now all I have to do is figure out how to include labels  and a header for my radio button.

Ex.
Knowledge Base
         Is There A KB?
0 Yes                      0 No

Unfortunately, the "Knowledge Base" and "Is There A KB?" won't show up. I need to go to the end and do: add(methodname); 
However it refuses to acknowledge the add part, and won't let the program run.

vjm
Автор

hi how do you see if a button is selected or not and use it as a binary value
i have 3 radio buttons b1, b2, b3, they are all separate (not in a buttongroup), i need that when the user hits submit i can save the binary value (true if pressed, false if not pressed) into a variable

TheWhiteTigerShow
Автор

@grv7070 Yes, if statements are most certainly an option.

kakashura
Автор

how to put a function to dat code?thanks ..

xshake
Автор

how do i get the value of the selected radiobutton?? like for example .. i clicked on "youtube" i should be able to print what i selected, , how?

javan
Автор

Gracias buenisimo este tuto -- Thanks,
this tutorial It is good... =)

DJosue
Автор

Hi Eni, I have to develop an application using GUI that calculate the price of a pizza based on its size and toppings, the sizes are 3 RadioButtons, and the toppings are CheckBoxs. When I select the size and the toppings the application is support to calculate the price. Can you help me with that?

ecolargo
Автор

@2xshake what do you need the function to perform? thanks

kakashura
Автор

the video is good. but u didnt explain the use of the lines of code. some of them were self explanatory, but went bouncer

SumedhSen
Автор

@grv7070 would you be able to send me a message with your exact specifications and I will do a tutorial on this to try and help you. Thank you

kakashura