Jtextarea1.append (Jcombobox1.getselecteditem (). toString () + "+jtextfield1.gettext () +" Hello! \ n "+" you submit personal information as follows \ n "+" gender "+a+" \ n like star "+c+d+e+f+g+h+" \ n "
Inside the core content as above
About radio buttons, using if to determine
String A; if (Jradiobutton1.isselected ()) {// Radio box content gets, good bull than a=jradiobutton1.gettext ();} Else {A=jradiobutton2.gettext ();}
But there's a simpler statement.
Jradiobutton1.isselected ()? Jradiobutton1.gettext (): Jradiobutton2.gettext ()
About the multi-select button, you can use the array to determine the batch, but the use of the stupid method, it is a pity
String c= ""; String D=""; String e=""; String F=""; String g=""; String h=""; if(Jcheckbox1.isselected ()) {//There is no way to find a group of methodsC=jcheckbox1.gettext ();}if(jcheckbox2.isselected ()) {D=jcheckbox2.gettext ();}if(jcheckbox3.isselected ()) {e=jcheckbox3.gettext ();}if(jcheckbox4.isselected ()) {f=jcheckbox4.gettext ();}if(jcheckbox5.isselected ()) {g=jcheckbox5.gettext ();}if(jcheckbox6.isselected ()) {h=jcheckbox6.gettext ();}
View Code
About javaswing Single box multi-box parameter get