mlrkey Posted May 25, 2015 Posted May 25, 2015 How can I go about doing this? I want to return true in my main class if a button in my gui class is selected.
Precise Posted May 25, 2015 Posted May 25, 2015 radioButton.isSelected(); please read up on java and try first before asking questions. 1
Apaec Posted May 25, 2015 Posted May 25, 2015 Add an actionlistener to the button. Look up on google how to do this! Most windowbuilders will have this as a feature anyway. Apaec
FrostBug Posted May 26, 2015 Posted May 26, 2015 Ensure that your main class has a reference to the GUI instance. Then do as @Precise said.