📄 about.java~5~
字号:
package dialog;import java.awt.*;import javax.swing.*;import java.awt.event.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class About extends JDialog { JLabel jLabel1 = new JLabel(); JLabel jLabel2 = new JLabel(); JButton jButton1 = new JButton(); JLabel jLabel3 = new JLabel(); JLabel jLabel4 = new JLabel(); JTextArea jTextArea1 = new JTextArea(); public About(Frame frame, String title, boolean modal) { super(frame, title, modal); try { jbInit(); pack(); } catch(Exception ex) { ex.printStackTrace(); } } public About() { this(null, "", false); } private void jbInit() throws Exception { jLabel1.setFont(new java.awt.Font("宋体", 0, 13)); jLabel1.setText("超快俄罗斯V 1.0"); jLabel1.setBounds(new Rectangle(22, 2, 115, 23)); this.getContentPane().setLayout(null); jLabel2.setFont(new java.awt.Font("宋体", 0, 13)); jLabel2.setPreferredSize(new Dimension(152, 16)); jLabel2.setText("作者:huang 2005.5"); jLabel2.setBounds(new Rectangle(22, 19, 166, 27)); jButton1.setBounds(new Rectangle(200, 18, 86, 28)); jButton1.setFont(new java.awt.Font("Dialog", 0, 13)); jButton1.setBorder(BorderFactory.createRaisedBevelBorder()); jButton1.setText("确定"); jButton1.addActionListener(new About_jButton1_actionAdapter(this)); jLabel3.setText("Email: hjj-8759@163.com"); jLabel3.setBounds(new Rectangle(22, 46, 142, 28)); jLabel4.setText("QQ: 165568328"); jLabel4.setBounds(new Rectangle(187, 53, 93, 20)); jTextArea1.setBackground(Color.lightGray); jTextArea1.setBorder(BorderFactory.createLoweredBevelBorder()); jTextArea1.setSelectedTextColor(Color.black); jTextArea1.setText(""); jTextArea1.setRows(10); jTextArea1.setTabSize(8); jTextArea1.setBounds(new Rectangle(17, 72, 280, 154)); jTextArea1.setAutoscrolls(true); jTextArea1.setText("超快俄罗斯V1.0是由传统的经典俄罗斯方块游戏发\n展出来的一种方块网络(或单机)对战型游戏。你只需\n要一次性消两行或以上,就\n可以加行给对方。内含人工智能,\n支持方块编辑、背景音乐等。当把服务器一方的所有\n参数调整到最快后,你就会深刻体会到超快\n俄罗斯的含义。"); this.getContentPane().add(jLabel2, null); this.getContentPane().add(jLabel1, null); this.getContentPane().add(jButton1, null); this.getContentPane().add(jLabel3, null); this.getContentPane().add(jLabel4, null); this.getContentPane().add(jTextArea1, null); } void jButton1_actionPerformed(ActionEvent e) { this.dispose(); }}class About_jButton1_actionAdapter implements java.awt.event.ActionListener { About adaptee; About_jButton1_actionAdapter(About adaptee) { this.adaptee = adaptee; } public void actionPerformed(ActionEvent e) { adaptee.jButton1_actionPerformed(e); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -