about.java~21~
来自「济南公交管理系统 (不完善,没有解决循环线路问题)」· JAVA~21~ 代码 · 共 55 行
JAVA~21~
55 行
import javax.swing.*;import java.awt.*;import java.awt.event.*;public class about extends JFrame { JLabel jLabel1 = new JLabel(); JTextArea jTextArea1 = new JTextArea(); JButton jButton1 = new JButton(); public about() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } private void jbInit() throws Exception { ImageIcon logo=new ImageIcon("picture/jnbus.jpg"); jLabel1.setText(""); jLabel1.setBounds(new Rectangle(1, 0, 106, 29)); this.getContentPane().setLayout(null); this.getContentPane().setBackground(SystemColor.inactiveCaption); jTextArea1.setBackground(SystemColor.inactiveCaption); jTextArea1.setEditable(false); jTextArea1.append("济南公交查询系统 v1.0\nDesign by pp\nCopyright@2006-2007"); jTextArea1.setBounds(new Rectangle(116, 2, 140, 58)); jButton1.setBackground(SystemColor.inactiveCaption); jButton1.setBounds(new Rectangle(84, 74, 84, 25)); jButton1.setFont(new java.awt.Font("Serif", 0, 12)); jButton1.setText("确定"); jButton1.addActionListener(new about_jButton1_actionAdapter(this)); this.getContentPane().add(jLabel1, null); this.getContentPane().add(jTextArea1, null); this.getContentPane().add(jButton1, null); jLabel1.setIcon(logo); } 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 + =
减小字号Ctrl + -
显示快捷键?