📄 sendbuttonpanel.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -