userpanel.java

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

JAVA
45
字号
package com.softfz.jn0708.main.user;

import java.awt.BorderLayout;
import javax.swing.JPanel;
import com.softfz.jn0708.main.QQServerAppFrame;

/**
 * 用户管理面板
 */
public class UserPanel extends JPanel{
	

	private static final long serialVersionUID = 1L;
	
	private Top topPanel=new Top(this);
	private Center centerPanel=new Center(this);
	private Bottom bottomPanel;
	private QQServerAppFrame frame;
	public UserPanel(QQServerAppFrame frame){
		this.frame=frame;		
		bottomPanel=new Bottom(this.frame,this);
		this.setLayout(new BorderLayout());
		this.add(topPanel,BorderLayout.NORTH);
		this.add(centerPanel,BorderLayout.CENTER);
		this.add(bottomPanel,BorderLayout.SOUTH);
	}
	
	/**
	 * 获取按钮面板
	 * @return
	 */
	public Bottom getBottomPanel() {
		return bottomPanel;
	}
	/**
	 * 获取中间面板
	 * @return
	 */
	public Center getCenterPanel() {
		return centerPanel;
	}


}

⌨️ 快捷键说明

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