sendbuttonpanel.java

来自「网络聊天室的毕业设计」· Java 代码 · 共 48 行

JAVA
48
字号
package qq.client.panel;import java.awt.Color;import java.awt.Dimension;import java.awt.FlowLayout;import javax.swing.*;/** * @author Hehaizhou */public class SendButtonPanel extends JPanel {		private static final long serialVersionUID = 13245754L;	JButton record;	JButton sent;	JButton close;		public SendButtonPanel() {		this.setBackground(new Color(74,133, 213));		this.setLayout(new FlowLayout(FlowLayout.LEADING,2,3));		record=new JButton("聊天记录");		sent=new JButton("发送");		close=new JButton("关闭");		JLabel label = new JLabel();		label.setText("                                          ");		this.add(record);		this.add(label);		this.add(sent);		this.add(close);		this.setPreferredSize(new Dimension(Short.MAX_VALUE,35));	}	public JButton getCloseButton() {		return close;	}	public JButton getRecordButton() {		return record;	}	public JButton getSentButton() {		return sent;	}	}

⌨️ 快捷键说明

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