我怎麼檢查是2 jRadio按鈕被選中,然後在新框架中顯示一個新的框架顯示新的操作,我的代碼中的問題是顯示問題1即使非單選按鈕被選中 the program should check id addition and easy are selected and when click start test should show new frame 這是我的主代碼 package javaappli
當我運行下面的代碼時,前2個按鈕不會出現;然而,第三個在框架中是可見的。 public class RadioButton {
RadioButton(){
JFrame frame = new JFrame();
JRadioButton button1 = new JRadioButton("One");
button1.setBounds(50,