just a quick question,
i'm making a GUI program to respond to a click of abutton,
i get it show me a window with all the buttons and labels, but i cannot get it to give me different output using the same listener.
String button = "";
if( paperButton.isSelected() ) button = "paper";
else if( rockButton.isSelected() ) button = "rock";
else if( scissorsButton.isSelected() ) button = "scissors";
else button = "error";
it always gives me "error" here, i'm i using the wrong method?