package dao;
import java.awt.EventQueue;
import java.awt.Toolkit;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import java.awt.Color;
public class About {
private JFrame frame;
public JFrame getFrame() {
return frame;
}
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
About window = new About();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the application.
*/
public About() {
initialize();
}
/**
* Initialize the contents of the frame.
*/
private void initialize() {
frame = new JFrame("关于");
frame.setBounds(100, 100, 322, 309);
frame.setIconImage(Toolkit.getDefaultToolkit().getImage(About.class.getResource("/LOLimage/game.png")));//左上角图标
frame.setLocationRelativeTo(null);// 窗体居中
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);//DISPOSE代表销毁当前窗口
frame.getContentPane().setLayout(null);
JLabel lblNewLabel = new JLabel("New label");//图标
lblNewLabel.setIcon(new ImageIcon(About.class.getResource("/LOLimage/game.png")));
lblNewLabel.setBounds(20, 37, 64, 64);
frame.getContentPane().add(lblNewLabel);
JLabel lblNewLabel_1 = new JLabel("\u8054\u76DF\u60C5\u62A5\u5C40");
lblNewLabel_1.setBounds(156, 37, 79, 15);
frame.getContentPane().add(lblNewLabel_1);
JLabel lblNewLabel_2 = new JLabel("\u7248\u672C\uFF1A1.0");
lblNewLabel_2.setBounds(156, 62, 64, 15);
frame.getContentPane().add(lblNewLabel_2);
JLabel lblNewLabel_3 = new JLabel("\u672C\u8F6F\u4EF6\u53EA\u4F9B\u5B66\u4E60\u4EA4\u6D41\u4F7F\u7528\uFF0C\u4E0D\u5F97\u7528\u4E8E\u5546\u4E1A\u7528\u9014\uFF01");
lblNewLabel_3.setForeground(Color.RED);
lblNewLabel_3.setBounds(20, 226, 287, 15);
frame.getContentPane().add(lblNewLabel_3);
JLabel lblNewLabel_4 = new JLabel("\u5F00\u53D1\u8005\u540D\u5355\uFF1A");
lblNewLabel_4.setBounds(120, 87, 141, 15);
frame.getContentPane().add(lblNewLabel_4);
JLabel lblNewLabel_5 = new JLabel("\u767D\u4F73\u5ADA");
lblNewLabel_5.setBounds(143, 112, 54, 15);
frame.getContentPane().add(lblNewLabel_5);
JLabel lblNewLabel_6 = new JLabel("\u9648\u6D69\u5929");
lblNewLabel_6.setBounds(207, 111, 54, 15);
frame.getContentPane().add(lblNewLabel_6);
JLabel lblNewLabel_7 = new JLabel("\u738B\u5E86");
lblNewLabel_7.setBounds(143, 136, 54, 15);
frame.getContentPane().add(lblNewLabel_7);
JLabel lblNewLabel_8 = new JLabel("\u8D75\u65B0\u5B87");
lblNewLabel_8.setBounds(207, 136, 54, 15);
frame.getContentPane().add(lblNewLabel_8);
JLabel lblqqcom = new JLabel("\u8054\u7CFB\u6211\u4EEC\uFF1A");
lblqqcom.setBounds(120, 163, 141, 15);
frame.getContentPane().add(lblqqcom);
JLabel lblqqcom_1 = new JLabel("121181086@qq.com");
lblqqcom_1.setBounds(143, 187, 121, 15);
frame.getContentPane().add(lblqqcom_1);
}
}