-1

I have a JFrame inside it has JButton and JCheckBox The only problem is that there is submit button , i double click on it to write code, but how to get JcheckBox or JRadioButton Data store to File . and then how to read it From file??

I write JCheckBox.getText(); and similarly for JRadioButton even used InputOutputStream , PrintWriter . tried to store them in int , and then in string but still not working

Anyway to store JCheckBox and JRadioButton into file and then after that how to read them too. using Netbeans.

Ahmed Ali
  • 1
  • 1

1 Answers1

-1

Simple i Found the solution by my self

if(JRadioButton1.isSelected()){
                String temp = "true";
                  fw.write("Outside Volunteer = " + temp);

}

Ahmed Ali
  • 1
  • 1