mainframe.java~22~

来自「基于Java的物流管理系统的开发与应用」· JAVA~22~ 代码 · 共 55 行

JAVA~22~
55
字号
package untitled5;import java.awt.*;import javax.swing.*;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();  JLabel jLabel1 = new JLabel();  JPanel jPanel1 = new JPanel();  JMenuBar jMenuBar1 = new JMenuBar();  JMenu jMenu1 = new JMenu();  JMenuItem jMenuItem1 = new JMenuItem();  public mainFrame() {    try {      jbInit();    }    catch(Exception e) {      e.printStackTrace();    }  }  private void jbInit() throws Exception {    jLabel1.setFont(new java.awt.Font("SansSerif", 2, 20));    jLabel1.setForeground(new Color(0, 0, 210));    jLabel1.setRequestFocusEnabled(true);    jLabel1.setText("图书管理系统");    this.getContentPane().setLayout(xYLayout1);    xYLayout1.setWidth(477);    xYLayout1.setHeight(397);    jMenuBar1.setBackground(Color.lightGray);    jMenuBar1.setForeground(Color.red);    jMenuBar1.setDebugGraphicsOptions(0);    jMenuBar1.setRequestFocusEnabled(true);    jMenuBar1.setVerifyInputWhenFocusTarget(true);    jMenu1.setText("xfg");    jMenuItem1.setText("xdfd");    this.getContentPane().add(jLabel1, new XYConstraints(149, 4, 136, 47));    this.getContentPane().add(jPanel1,   new XYConstraints(11, 10, 136, 73));    jMenuBar1.add(jMenu1);    jMenu1.add(jMenuItem1);  }   public static void main(String args[]){     mainFrame main =new mainFrame();     main.show();   }}

⌨️ 快捷键说明

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