mlrkey Posted May 25, 2015 Share 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. Quote Link to comment Share on other sites More sharing options...
Precise Posted May 25, 2015 Share Posted May 25, 2015 radioButton.isSelected(); please read up on java and try first before asking questions. 1 Quote Link to comment Share on other sites More sharing options...
Apaec Posted May 25, 2015 Share 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 Quote Link to comment Share on other sites More sharing options...
FrostBug Posted May 26, 2015 Share Posted May 26, 2015 Ensure that your main class has a reference to the GUI instance. Then do as @Precise said. Quote Link to comment Share on other sites More sharing options...