1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
| phone.setBounds(150, 250, 150, 30); college.setBounds(150, 300, 150, 30);
major.setBounds(420, 100, 150, 30); grade.setBounds(420, 150, 150, 30); area.setBounds(420, 200, 150, 30); building.setBounds(420, 250, 150, 30); dormitory.setBounds(420, 300, 150, 30);
lab0.setBounds(60, 100, 90, 30); lab1.setBounds(60, 150, 90, 30); lab2.setBounds(60, 200, 90, 30); lab3.setBounds(60, 250, 90, 30); lab4.setBounds(60, 300, 90, 30);
lab5.setBounds(330, 100, 90, 30); lab6.setBounds(330, 150, 90, 30); lab7.setBounds(330, 200, 90, 30); lab8.setBounds(330, 250, 90, 30); lab9.setBounds(330, 300, 90, 30); but1.setBounds(500, 380, 120, 30); but2.setBounds(360, 380, 120, 30);
lab0.setFont(new Font("华文仿宋",Font.BOLD,18)); lab1.setFont(new Font("华文仿宋",Font.BOLD,18)); lab2.setFont(new Font("华文仿宋",Font.BOLD,18)); lab3.setFont(new Font("华文仿宋",Font.BOLD,18)); lab4.setFont(new Font("华文仿宋",Font.BOLD,18)); lab5.setFont(new Font("华文仿宋",Font.BOLD,18)); lab6.setFont(new Font("华文仿宋",Font.BOLD,18)); lab7.setFont(new Font("华文仿宋",Font.BOLD,18)); lab8.setFont(new Font("华文仿宋",Font.BOLD,18)); lab9.setFont(new Font("华文仿宋",Font.BOLD,18));
but1.setFont(new Font("宋体",Font.BOLD,18)); but2.setFont(new Font("宋体",Font.BOLD,18));
this.add(lab0); this.add(lab1); this.add(lab2); this.add(lab3); this.add(lab4); this.add(lab5); this.add(lab6); this.add(lab7); this.add(lab8);
|