📄 shanchukaoshi.java~5~
字号:
package untitled2;import javax.swing.*;import java.awt.*;import com.borland.jbcl.layout.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class shanChuKaoShi extends JFrame { JList jList2 = new JList(); JLabel jLabel1 = new JLabel(); JTextField jTextField1 = new JTextField(); JLabel jLabel2 = new JLabel(); JTextField jTextField2 = new JTextField(); JButton jButton1 = new JButton(); JTextField jTextField3 = new JTextField(); JTextField jTextField4 = new JTextField(); JLabel jLabel3 = new JLabel(); JLabel jLabel4 = new JLabel(); JButton jButton2 = new JButton(); JButton jButton3 = new JButton(); JButton jButton4 = new JButton(); GridBagLayout gridBagLayout1 = new GridBagLayout(); public shanChuKaoShi() { try { jbInit(); } catch(Exception ex) { ex.printStackTrace(); } } void jbInit() throws Exception { this.getContentPane().setLayout(gridBagLayout1); jLabel1.setFont(new java.awt.Font("Dialog", 1, 13)); jLabel1.setText("请输入考试科目"); jLabel2.setFont(new java.awt.Font("Dialog", 1, 13)); jLabel2.setText("请输入考试时间"); jButton1.setFont(new java.awt.Font("Dialog", 0, 13)); jButton1.setSize(new Dimension(73, 25)); jButton1.setText("查询"); jTextField2.setText(""); jTextField1.setText(""); jLabel3.setFont(new java.awt.Font("Dialog", 1, 13)); jLabel3.setText("请输入新的考试科目"); jLabel4.setFont(new java.awt.Font("Dialog", 1, 13)); jLabel4.setText("请输入新的考试地点"); jButton2.setFont(new java.awt.Font("Dialog", 0, 13)); jButton2.setText("删除"); jButton3.setFont(new java.awt.Font("Dialog", 0, 13)); jButton3.setText("确定"); jButton4.setFont(new java.awt.Font("Dialog", 0, 13)); jButton4.setText("取消"); jTextField3.setText(""); jTextField4.setText(""); this.getContentPane().add(jLabel2, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(15, 34, 0, 6), 0, 0)); this.getContentPane().add(jLabel1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(29, 33, 0, 7), 0, 0)); this.getContentPane().add(jLabel3, new GridBagConstraints(0, 3, 2, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(25, 12, 0, 118), 6, 0)); this.getContentPane().add(jList2, new GridBagConstraints(0, 2, 3, 1, 1.0, 1.0 ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(18, 0, 0, 0), 420, 112)); this.getContentPane().add(jTextField4, new GridBagConstraints(1, 4, 1, 1, 1.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(9, 26, 32, 0), 91, 1)); this.getContentPane().add(jLabel4, new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(12, 13, 32, 0), 0, 0)); this.getContentPane().add(jTextField3, new GridBagConstraints(1, 3, 1, 1, 1.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(21, 26, 0, 0), 91, 2)); this.getContentPane().add(jTextField1, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(26, 26, 0, 0), 91, 0)); this.getContentPane().add(jTextField2, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(12, 26, 0, 0), 91, 0)); this.getContentPane().add(jButton2, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(7, 41, 0, 59), 0, 0)); this.getContentPane().add(jButton1, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(20, 41, 0, 59), 0, 0)); this.getContentPane().add(jButton3, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(18, 41, 0, 50), 9, 0)); this.getContentPane().add(jButton4, new GridBagConstraints(2, 4, 1, 1, 0.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 41, 32, 51), 8, 0)); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -