?? 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 + -