📄 chaxunxueshengxinxi.java~3~
字号:
package untitled2;import javax.swing.*;import java.awt.*;import com.borland.jbcl.layout.*;import com.borland.dbswing.*;import java.awt.event.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class chaXunXueShengXinXi extends JFrame { XYLayout xYLayout1 = new XYLayout(); JTextField jTextField2 = new JTextField(); JRadioButton jRadioButton1 = new JRadioButton(); JRadioButton jRadioButton2 = new JRadioButton(); JRadioButton jRadioButton3 = new JRadioButton(); JLabel jLabel1 = new JLabel(); JLabel jLabel2 = new JLabel(); JLabel jLabel3 = new JLabel(); JdbTable jdbTable1 = new JdbTable(); JTextField jTextField3 = new JTextField(); JTextField jTextField4 = new JTextField(); JButton jButton1 = new JButton(); JButton jButton2 = new JButton(); ButtonGroup jrp=new ButtonGroup(); public chaXunXueShengXinXi() { try { jbInit(); jrp.add(this.jRadioButton1); jrp.add(this.jRadioButton2); jrp.add(this.jRadioButton3); } catch(Exception ex) { ex.printStackTrace(); } } void jbInit() throws Exception { this.setSize(new Dimension(800, 600)); this.getContentPane().setLayout(xYLayout1); jRadioButton1.setFont(new java.awt.Font("Dialog", 0, 13)); jRadioButton1.setText("个人查询"); jRadioButton2.setFont(new java.awt.Font("Dialog", 0, 13)); jRadioButton2.setText("按班级查询"); jRadioButton3.setFont(new java.awt.Font("Dialog", 0, 13)); jRadioButton3.setText("按年级查询"); jLabel1.setFont(new java.awt.Font("Dialog", 0, 13)); jLabel1.setText("请输入年级 "); jLabel2.setFont(new java.awt.Font("Dialog", 0, 13)); jLabel2.setText("请输入班级"); jLabel3.setFont(new java.awt.Font("Dialog", 0, 13)); jLabel3.setText("请输入学号 "); jTextField2.setText(""); jTextField3.setText(""); jTextField4.setText(""); jButton1.setFont(new java.awt.Font("Dialog", 0, 13)); jButton1.setToolTipText(""); jButton1.setText("查询"); jButton2.setFont(new java.awt.Font("Dialog", 0, 13)); jButton2.setText("退出"); jButton2.addActionListener(new chaXunXueShengXinXi_jButton2_actionAdapter(this)); this.getContentPane().add(jdbTable1, new XYConstraints(25, 163, 747, 415)); this.getContentPane().add(jLabel1, new XYConstraints(66, 35, -1, -1)); this.getContentPane().add(jLabel2, new XYConstraints(65, 70, -1, -1)); this.getContentPane().add(jLabel3, new XYConstraints(63, 106, -1, -1)); this.getContentPane().add(jTextField2, new XYConstraints(157, 70, 112, -1)); this.getContentPane().add(jRadioButton3, new XYConstraints(408, 31, -1, -1)); this.getContentPane().add(jRadioButton2, new XYConstraints(407, 65, -1, -1)); this.getContentPane().add(jRadioButton1, new XYConstraints(410, 98, -1, -1)); this.getContentPane().add(jTextField3, new XYConstraints(158, 104, 112, -1)); this.getContentPane().add(jTextField4, new XYConstraints(156, 34, 112, -1)); this.getContentPane().add(jButton1, new XYConstraints(583, 103, -1, -1)); this.getContentPane().add(jButton2, new XYConstraints(689, 101, -1, -1)); } void jButton2_actionPerformed(ActionEvent e) {this.dispose(); }}class chaXunXueShengXinXi_jButton2_actionAdapter implements java.awt.event.ActionListener { chaXunXueShengXinXi adaptee; chaXunXueShengXinXi_jButton2_actionAdapter(chaXunXueShengXinXi adaptee) { this.adaptee = adaptee; } public void actionPerformed(ActionEvent e) { adaptee.jButton2_actionPerformed(e); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -