📄 deptmng.java
字号:
package com.zlf.qqserver.deptmng;
/**
* 部门管理面板,分为上下俩个面板
* 上部表格显示,下部放按钮
*/
import java.awt.BorderLayout;
import javax.swing.Box;
import javax.swing.JPanel;
import com.zlf.qqserver.ServerMain;
public class DeptMng extends JPanel{
/**
*
*/
private static final long serialVersionUID = 2365773806303958415L;
private BottomPanel botPanel =null;
private TopPanel topPanel =null;
private ServerMain f ;
public DeptMng(ServerMain f){
this.setLayout(new BorderLayout());
botPanel=new BottomPanel(f);
topPanel=new TopPanel(f);
this.add(Box.createVerticalStrut(20),BorderLayout.NORTH);
this.add(topPanel,BorderLayout.CENTER);
this.add(botPanel,BorderLayout.SOUTH);
this.botPanel.getUpdateBtn().setEnabled(false);
this.botPanel.getDeleteBtn().setEnabled(false);
this.botPanel.getRefurbishBtn().setEnabled(false);
}
public BottomPanel getBotPanel() {
return botPanel;
}
public void setBotPanel(BottomPanel botPanel) {
this.botPanel = botPanel;
}
public ServerMain getF() {
return f;
}
public void setF(ServerMain f) {
this.f = f;
}
public TopPanel getTopPanel() {
return topPanel;
}
public void setTopPanel(TopPanel topPanel) {
this.topPanel = topPanel;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -