📄 qqprogress.java
字号:
package client;
import javax.swing.JPanel;
import javax.swing.JFrame;
import java.awt.Color;
import java.awt.Rectangle;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import java.awt.Font;
import java.awt.Toolkit;
import javax.swing.WindowConstants;
public class QQProgress extends JFrame {
private static final long serialVersionUID = 11321321L;
private JPanel jContentPane = null;
private JPanel jPanel = null;
private JLabel jLabel = null;
private JButton jButton = null;
private JPanel jPanel1 = null;
private Login login = null;
/**
* This is the default constructor
*/
public QQProgress(Login login) {
super();
this.login = login;
initialize();
}
/**
* This method initializes this
*
* @return void
*/
private void initialize() {
this.setResizable(false);
this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
this.setIconImage(Toolkit.getDefaultToolkit().getImage(
getClass().getResource("/picture/FriendButton.gif")));
this.setBounds(new Rectangle(800, 0, 213, 542));
this.setContentPane(getJContentPane());
this.setTitle("QQ2009");
}
/**
* This method initializes jContentPane
*
* @return javax.swing.JPanel
*/
private JPanel getJContentPane() {
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(null);
jContentPane.setBackground(new Color(78, 174, 232));
jContentPane.add(getJPanel(), null);
}
return jContentPane;
}
/**
* This method initializes jPanel
*
* @return javax.swing.JPanel
*/
private JPanel getJPanel() {
if (jPanel == null) {
jLabel = new JLabel();
jLabel.setBounds(new Rectangle(31, 158, 134, 106));
jLabel.setIcon(new ImageIcon(getClass().getResource(
"/picture/11111.gif")));
jLabel.setText("");
jPanel = new JPanel();
jPanel.setLayout(null);
jPanel.setBounds(new Rectangle(5, 10, 196, 496));
jPanel.setBorder(BorderFactory.createLineBorder(new Color(55, 159,
215), 1));
jPanel.setBackground(Color.white);
jPanel.add(jLabel, null);
jPanel.add(getJPanel1(), null);
}
return jPanel;
}
/**
* This method initializes jButton
*
* @return javax.swing.JButton
*/
private JButton getJButton() {
if (jButton == null) {
jButton = new JButton();
jButton.setBackground(new Color(99, 187, 238));
jButton.setText("取消登录");
jButton.setFont(new Font("Dialog", Font.PLAIN, 12));
jButton.setBounds(new Rectangle(2, 1, 86, 26));
jButton.setForeground(Color.black);
jButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
QQProgress.this.dispose();
login.setVisible(true);
}
});
}
return jButton;
}
/**
* This method initializes jPanel1
*
* @return javax.swing.JPanel
*/
private JPanel getJPanel1() {
if (jPanel1 == null) {
jPanel1 = new JPanel();
jPanel1.setLayout(null);
jPanel1.setBounds(new Rectangle(50, 277, 90, 29));
jPanel1.setBorder(BorderFactory.createLineBorder(new Color(252,
237, 2), 2));
jPanel1.setBackground(Color.white);
jPanel1.add(getJButton(), null);
}
return jPanel1;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -