about.java~2~
来自「JBuilder实现的具有单机」· JAVA~2~ 代码 · 共 73 行
JAVA~2~
73 行
package dialog;import java.awt.*;import javax.swing.*;/** * <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("确定"); 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.setTabSize(8); jTextArea1.setBounds(new Rectangle(17, 72, 280, 154)); jTextArea1.setAutoscrolls(true); jTextArea1.append("超快俄罗斯V1.0是由传统的经典俄罗斯方块"); jTextArea1.append("游戏发展出来的一种方块网络(或单机)对战"); 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); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?