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

📄 chengjifenxi.java~11~

📁 中小学校园的教师
💻 JAVA~11~
字号:
package untitled2;import javax.swing.*;import java.awt.*;import com.borland.jbcl.layout.*;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 chengJiFenXi extends JFrame {  XYLayout xYLayout1 = new XYLayout();  JTabbedPane jTabbedPane1 = new JTabbedPane();  JTextArea jTextArea1 = new JTextArea();  JTextArea jTextArea2 = new JTextArea();  JTextArea jTextArea3 = new JTextArea();  JRadioButton jRadioButton1 = new JRadioButton();  JRadioButton jRadioButton2 = new JRadioButton();  JRadioButton jRadioButton3 = new JRadioButton();  JRadioButton jRadioButton4 = new JRadioButton();  JTextField jTextField1 = new JTextField();  JLabel jLabel1 = new JLabel();  JComboBox jComboBox1 = new JComboBox();  JLabel jLabel2 = new JLabel();  public chengJiFenXi() {    try {      jbInit();      jComboBox1.addItem("统计");      jComboBox1.addItem("横向");      jComboBox1.addItem("纵向");      jComboBox1.addItem("综合");    }    catch(Exception ex) {      ex.printStackTrace();    }  }  void jbInit() throws Exception {    this.getContentPane().setLayout(xYLayout1);    jTabbedPane1.setFont(new java.awt.Font("Dialog", 1, 13));    jTextArea1.setText("");    jTextArea2.setText("");    jTextArea3.setText("");    xYLayout1.setWidth(569);    xYLayout1.setHeight(330);    jRadioButton1.setFont(new java.awt.Font("Dialog", 0, 13));    jRadioButton1.setSelected(true);    jRadioButton1.setText("年级");    jRadioButton2.setFont(new java.awt.Font("Dialog", 0, 13));    jRadioButton2.setText("班级");    jRadioButton3.setFont(new java.awt.Font("Dialog", 0, 13));    jRadioButton3.setText("教师");    jRadioButton3.addActionListener(new chengJiFenXi_jRadioButton3_actionAdapter(this));    jRadioButton4.setFont(new java.awt.Font("Dialog", 0, 13));    jRadioButton4.setFocusPainted(true);    jRadioButton4.setText("学生");    jLabel1.setFont(new java.awt.Font("Dialog", 1, 13));    jLabel1.setText("请选择分析对象:");    jTextField1.setText("");    jComboBox1.addActionListener(new chengJiFenXi_jComboBox1_actionAdapter(this));    jLabel2.setFont(new java.awt.Font("Dialog", 1, 13));    jLabel2.setText("分析种类:");    this.setSize(new Dimension(520, 400));    this.setTitle("欢迎您进入成绩分析界面");    this.setVisible(false);    jTabbedPane1.add(jTextArea1,     "柱图显示");    jTabbedPane1.add(jTextArea2,   "线图显示");    jTabbedPane1.add(jTextArea3,     "饼图显示");    this.getContentPane().add(jComboBox1, new XYConstraints(394, 33, 93, -1));    this.getContentPane().add(jRadioButton1, new XYConstraints(208, 74, -1, -1));    this.getContentPane().add(jLabel2,   new XYConstraints(329, 35, -1, -1));    this.getContentPane().add(jRadioButton2,   new XYConstraints(286, 74, -1, -1));    this.getContentPane().add(jRadioButton4, new XYConstraints(360, 76, -1, -1));    this.getContentPane().add(jRadioButton3, new XYConstraints(431, 76, -1, -1));    this.getContentPane().add(jTextField1,  new XYConstraints(138, 31, 157, -1));    this.getContentPane().add(jLabel1,  new XYConstraints(8, 33, 117, -1));    this.getContentPane().add(jTabbedPane1,             new XYConstraints(1, 110, 567, 245));    jTabbedPane1.setSelectedComponent(jTextArea2);    jTabbedPane1.setSelectedIndex(1);  }  void jComboBox1_actionPerformed(ActionEvent e) {  }  void jRadioButton3_actionPerformed(ActionEvent e) {  }}class chengJiFenXi_jComboBox1_actionAdapter implements java.awt.event.ActionListener {  chengJiFenXi adaptee;  chengJiFenXi_jComboBox1_actionAdapter(chengJiFenXi adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.jComboBox1_actionPerformed(e);  }}class chengJiFenXi_jRadioButton3_actionAdapter implements java.awt.event.ActionListener {  chengJiFenXi adaptee;  chengJiFenXi_jRadioButton3_actionAdapter(chengJiFenXi adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.jRadioButton3_actionPerformed(e);  }}

⌨️ 快捷键说明

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