⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 artacn.java~1~

📁 Java课程设计案例精编源代码,非常经典的教材,非常经典的源代码.大家互相学习一下!
💻 JAVA~1~
字号:
package infomanagement;import java.awt.*;import javax.swing.*;import com.borland.jbcl.layout.*;import java.awt.event.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: </p> * @author unascribed * @version 1.0 */public class ArtAcn extends JDialog {  private JPanel jPanel1 = new JPanel();  private XYLayout xYLayout1 = new XYLayout();  private JLabel jLabel1 = new JLabel();  private JLabel jLabel2 = new JLabel();  private JLabel jLabel3 = new JLabel();  private JTextField jTextField1 = new JTextField();  private JLabel jLabel4 = new JLabel();  private JTextField jTextField2 = new JTextField();  private JLabel jLabel5 = new JLabel();  private JTextField jTextField3 = new JTextField();  private JLabel jLabel6 = new JLabel();  private JTextField jTextField4 = new JTextField();  private JLabel jLabel7 = new JLabel();  private JTextField jTextField5 = new JTextField();  private JLabel jLabel8 = new JLabel();  private JButton jButton1 = new JButton();  private JButton jButton2 = new JButton();  public ArtAcn(Frame frame, String title, boolean modal) {    super(frame, title, modal);    try {      jbInit();      pack();    }    catch(Exception ex) {      ex.printStackTrace();    }  }  public ArtAcn() {    this(null, "", false);  }  private void jbInit() throws Exception {    jPanel1.setLayout(xYLayout1);    jLabel1.setForeground(Color.red);    jLabel1.setBorder(BorderFactory.createEtchedBorder());    jLabel1.setText("          文科科成绩录入");    jLabel2.setBorder(BorderFactory.createEtchedBorder());    jLabel3.setForeground(Color.red);    jLabel3.setText("     数学");    jLabel4.setForeground(Color.red);    jLabel4.setText("     英语");    jLabel5.setForeground(Color.red);    jLabel5.setText("     语文");    jLabel6.setForeground(Color.red);    jLabel6.setText("     政治");    jTextField4.addActionListener(new java.awt.event.ActionListener() {      public void actionPerformed(ActionEvent e) {        jTextField4_actionPerformed(e);      }    });    jLabel7.setForeground(Color.red);    jLabel7.setText("     历史");    jLabel8.setBorder(BorderFactory.createEtchedBorder());    jButton1.setText("确定");    jButton2.setText("取消");    this.getContentPane().add(jPanel1, BorderLayout.CENTER);    jPanel1.add(jLabel1,       new XYConstraints(0, 1, 400, 26));    jPanel1.add(jLabel3,  new XYConstraints(20, 45, 90, 20));    jPanel1.add(jTextField1,    new XYConstraints(140, 45, 120, 20));    jPanel1.add(jLabel4,   new XYConstraints(20, 90, 90, 20));    jPanel1.add(jTextField2,   new XYConstraints(140, 90, 120, 20));    jPanel1.add(jLabel5,    new XYConstraints(20, 135, 90, 20));    jPanel1.add(jTextField3,    new XYConstraints(140, 135, 120, 20));    jPanel1.add(jLabel6,   new XYConstraints(20, 180, 90, 20));    jPanel1.add(jTextField4,   new XYConstraints(140, 180, 120, 20));    jPanel1.add(jLabel7,   new XYConstraints(20, 225, 90, 20));    jPanel1.add(jTextField5,      new XYConstraints(140, 225, 120, 20));    jPanel1.add(jLabel2, new XYConstraints(1, 26, 399, 275));    jPanel1.add(jLabel8,    new XYConstraints(1, 255, 397, 44));    jPanel1.add(jButton1,        new XYConstraints(200, 265, 90, 30));    jPanel1.add(jButton2,      new XYConstraints(300, 265, 90, 30));  }  void jTextField4_actionPerformed(ActionEvent e) {  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -