mercredi 8 juillet 2020

Get each checkbox value with its radio button value SWING

How to I get from each checkbox which is selected each selected radio button value. Do I need to add on each checkbox an ActionListener or is a simple if(checkbox.isSelected()) enough?

enter image description here

Example Solution: I checked A with the radio button value 2 
and B with the radio button 1. 
 Now I would get A: 2 and B: 1.



Aucun commentaire:

Enregistrer un commentaire