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

📄 frame4.java

📁 员工管理加销售管理,填加修改删除员工信息,统计员工的销售情况的.非常不错哈
💻 JAVA
字号:
package liulei;import java.awt.*;import java.awt.event.*;import javax.swing.*;public class Frame4 extends JFrame {  JPanel contentPane;  JLabel jLabel1 = new JLabel();  //Construct the frame  public Frame4() {    enableEvents(AWTEvent.WINDOW_EVENT_MASK);    try {      jbInit();    }    catch(Exception e) {      e.printStackTrace();    }  }  //Component initialization  private void jbInit() throws Exception  {    contentPane = (JPanel) this.getContentPane();    jLabel1.setFont(new java.awt.Font("Dialog", 0, 13));    jLabel1.setForeground(Color.magenta);    jLabel1.setAlignmentX((float) 0.0);    jLabel1.setText("汽车基本信息");    jLabel1.setBounds(new Rectangle(155, 16, 122, 32));    contentPane.setLayout(null);    this.setSize(new Dimension(400, 300));    this.setTitle("Frame Title");    contentPane.setBackground(SystemColor.inactiveCaptionText);    contentPane.add(jLabel1, 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);    }  }}

⌨️ 快捷键说明

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