about.java~12~
来自「济南公交管理系统 (不完善,没有解决循环线路问题)」· JAVA~12~ 代码 · 共 36 行
JAVA~12~
36 行
import javax.swing.*;import java.awt.*;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.inactiveCaptionText); jTextArea1.setText("济南公交查询系统"); jTextArea1.setBounds(new Rectangle(116, 2, 196, 84)); jButton1.setBackground(SystemColor.inactiveCaption); jButton1.setBounds(new Rectangle(319, 11, 73, 25)); jButton1.setText("确定"); this.getContentPane().add(jLabel1, null); this.getContentPane().add(jTextArea1, null); this.getContentPane().add(jButton1, null); jLabel1.setIcon(logo); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?