Code example for RadioButton

Methods: setCheckedsetEnabled

0
	} 
	 
	// Set a new Question 
	private void setNewQuestion()	{ 
		 
		rbn1.setEnabled(true);
		rbn1.setChecked(false);
		 
		rbn2.setEnabled(true);
		rbn2.setChecked(false);
		 
		rbn3.setEnabled(true);
		rbn3.setChecked(false);
		 
		rbn4.setEnabled(true);
		rbn4.setChecked(false);
		 
		button1.setEnabled(true);
		button2.setEnabled(false);
		button3.setText("Confirm");
Experience pair programming with AI  Get Codota for Java