📄 mypanele.java
字号:
package src1;
import java.awt.*;
import javax.swing.*;
import javax.swing.tree.DefaultMutableTreeNode;
public class MyPanelE extends JPanel {
public static JPanel 入库;
public static JPanel 出库;
public static JPanel 添加新产品信息;
public static JPanel 添加新仓库信息;
public static JPanel 修改新产品信息;
public static JPanel 修改新仓库信息;
public static JPanel 删除新产品信息;
public static JPanel 删除新仓库信息;
public static JPanel 产品明细 ;
public static JPanel 入库单明细 ;
public static JPanel 出库单明细 ;
public static JPanel 库存查询 ;
public static JPanel 总入库量 ;
public static JPanel 总出库量 ;
public static JPanel 平均入库量 ;
public static JPanel 平均出库量;
public static JPanel 新增用户;
public static JPanel 注销用户;
public static JPanel 密码修改 ;
public static JPanel 注销;
public static JPanel 帮助 ;
public MyPanelE()
{
this.setLayout(null);
入库 = new FPanel1();
出库 = new FPanel2();
添加新产品信息 = new FPanel3();
添加新仓库信息 = new FPanel4();
修改新产品信息 = new FPanel5();
修改新仓库信息 = new FPanel6();
删除新产品信息 = new FPanel7();
删除新仓库信息 = new FPanel8();
产品明细 = new FPanel9();
入库单明细 = new FPanel10();
出库单明细 = new FPanel11();
库存查询 = new FPanel12();
总入库量 = new FPanel13();
总出库量 = new FPanel14();
平均入库量 = new FPanel15();
平均出库量 = new FPanel16();
密码修改 = new FPanel17();
注销 = new FPanel18();
新增用户 = new FPanel19();
注销用户 = new FPanel20();
帮助 = new FPanel21();
this.add(入库);
this.add(出库);
this.add( 添加新产品信息);
this.add( 添加新仓库信息);
this.add( 修改新产品信息);
this.add( 修改新仓库信息);
this.add( 删除新产品信息);
this.add( 删除新仓库信息);
this.add(产品明细);
this.add(入库单明细);
this.add(出库单明细);
this.add( 库存查询);
this.add(总出库量);
this.add(总入库量);
this.add(平均出库量);
this.add(平均入库量);
this.add(新增用户);
this.add(注销用户);
this.add(密码修改);
this.add(注销);
this.add( 帮助);
}
public static void myUpdate(JPanel panel)
{
添加新产品信息.setVisible(false);
添加新仓库信息.setVisible(false);
修改新产品信息.setVisible(false);
修改新仓库信息.setVisible(false);
删除新产品信息.setVisible(false);
删除新仓库信息.setVisible(false);
入库 .setVisible(false);
出库 .setVisible(false);
产品明细.setVisible(false);
入库单明细.setVisible(false);
出库单明细.setVisible(false);
库存查询.setVisible(false);
总出库量.setVisible(false);
总入库量 .setVisible(false);
平均出库量 .setVisible(false);
平均入库量 .setVisible(false);
新增用户 .setVisible(false);
注销用户 .setVisible(false);
密码修改 .setVisible(false);
注销 .setVisible(false);
帮助 .setVisible(false);
panel.setVisible(true);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -