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

📄 mainframe.java~1~

📁 Java课程设计案例精编源代码__ManpowerSystem.rar
💻 JAVA~1~
字号:
package manpowersystem;import javax.swing.*;import java.awt.event.*;import java.awt.*;import com.borland.jbcl.layout.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class MainFrame extends JFrame {    XYLayout xYLayout1 = new XYLayout();    JPanel jPanel1 = new JPanel();    XYLayout xYLayout2 = new XYLayout();    JPanel jPanel2 = new JPanel();    public MainFrame() {        try {            jbInit();        }        catch(Exception e) {            e.printStackTrace();        }    }    public static void main(String[] args) {        MainFrame mainFrame = new MainFrame();        mainFrame.validate();        mainFrame.setLocation(200,150);        mainFrame.setSize(600,480);        mainFrame.setVisible(true);        mainFrame.pack();    }    private void jbInit() throws Exception {        xYLayout1.setWidth(525);        xYLayout1.setHeight(407);        this.getContentPane().setBackground(new Color(210, 138, 177));        this.setLocale(java.util.Locale.getDefault());        this.setResizable(true);        this.addWindowListener(new MainFrame_this_windowAdapter(this));        this.getContentPane().setLayout(xYLayout1);        jPanel1.setLayout(xYLayout2);        jPanel1.setBackground(new Color(210, 138, 177));        this.getContentPane().add(jPanel1, new XYConstraints(3, 4, 297, 402));        this.getContentPane().add(jPanel2,  new XYConstraints(304, 0, 220, 409));    }    void this_windowClosed(WindowEvent e) {        System.exit(0);    }}class MainFrame_this_windowAdapter extends java.awt.event.WindowAdapter {    MainFrame adaptee;    MainFrame_this_windowAdapter(MainFrame adaptee) {        this.adaptee = adaptee;    }    public void windowClosed(WindowEvent e) {        adaptee.this_windowClosed(e);    }}

⌨️ 快捷键说明

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