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

📄 err_process_null.java

📁 这个是朋友作的毕业设计
💻 JAVA
字号:
package Resource_Selection;import java.awt.*;import java.awt.event.*;import javax.swing.*;public class err_process_null extends JFrame {  JPanel contentPane;  JLabel jLabel1 = new JLabel();  JButton jButton1 = new JButton();  //Construct the frame  public err_process_null() {    enableEvents(AWTEvent.WINDOW_EVENT_MASK);    try {      jbInit();    }    catch(Exception e) {      e.printStackTrace();    }  }  //Component initialization  private void jbInit() throws Exception  {    contentPane = (JPanel) this.getContentPane();    jLabel1.setText("进程数不能为0,请重新输入");    jLabel1.setBounds(new Rectangle(83, 15, 154, 28));    contentPane.setLayout(null);    this.setSize(new Dimension(327, 120));    this.setTitle("ERR");    jButton1.setBounds(new Rectangle(121, 64, 89, 27));    jButton1.setText("确定");    jButton1.addActionListener(new err_process_null_jButton1_actionAdapter(this));    contentPane.add(jLabel1, null);    contentPane.add(jButton1, null);  }  //Overridden so we can exit when window is closed  protected void processWindowEvent(WindowEvent e) {    super.processWindowEvent(e);    if (e.getID() == WindowEvent.WINDOW_CLOSING) {//      System.exit(0);      this.dispose();    }  }  void jButton1_actionPerformed(ActionEvent e) {    this.dispose();  }}class err_process_null_jButton1_actionAdapter implements java.awt.event.ActionListener {  err_process_null adaptee;  err_process_null_jButton1_actionAdapter(err_process_null adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.jButton1_actionPerformed(e);  }}

⌨️ 快捷键说明

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