Home > Back-end > A Java bosses ask this question: to design a form the user interface. The interface includes three l
A Java bosses ask this question: to design a form the user interface. The interface includes three l
Time:09-18
1. Design a form the user interface, the interface includes three labels, three text boxes and a button, three standard Sign are respectively [math] [English] [out] button titled [for peace] requirements in the text box input mathematics, English scores, click the button for peace in the text box shows the total score, after Thank thank genuflect is begged genuflect is begged
CodePudding user response:
And what type of user interface
CodePudding user response:
<script> The function sum () { Var sx=document. GetElementById (' sx). The value;//for math score Var yy=document. GetElementById (" yy "). The value;//to get correct English score Document. The getElementById (' sum ') value=https://bbs.csdn.net/topics/parseInt (sx) + parseInt (yy);//will be math and English combined assign values to the total score } </script>
Is this this is the Java language,,,,,,, I am a little white,,, I don't know much about
SetLayout (null); SetBounds (200, 100, 400, 300); //window in the middle of the screen shows the setLocationRelativeTo(null); SetTitle (" sum "); SetResizable (false); setVisible(true); }
Public static void main (String [] args) { SummationForm SummationForm=new SummationForm ();