deptpanel.java

来自「模仿腾讯QQ的」· Java 代码 · 共 53 行

JAVA
53
字号
package com.softfz.jn0708.main.department;

import java.awt.BorderLayout;
import java.awt.Color;
import javax.swing.JPanel;

import com.softfz.jn0708.main.QQServerAppFrame;

public class DeptPanel extends JPanel{
	/**
	 * 部门管理面板
	 */
	private static final long serialVersionUID = 1L;
	
	private CenterPanel centerPanel;
	private BottomPanel bottomPanel;
	private QQServerAppFrame frame;

	public DeptPanel(QQServerAppFrame frame){

		this.frame=frame;		
		
		
		bottomPanel=new BottomPanel(this.frame,this);
		centerPanel=new CenterPanel(this);
		this.setLayout(new BorderLayout());
		this.add(centerPanel,BorderLayout.CENTER);
		this.add(bottomPanel,BorderLayout.SOUTH);
		this.setBackground(new Color(241,250,255));
		
	}

	/**
	 * 获取部门管理中间面板
	 * @return
	 */
	public CenterPanel getCenterPanel() {
		
		return centerPanel;		
	}
	/**
	 * 获取按钮面板
	 * @return
	 */
	public BottomPanel getBottomPanel() {
		
		return bottomPanel;		
		
	}


}

⌨️ 快捷键说明

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