⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 welcome.java

📁 java 网吧项目 源码
💻 JAVA
字号:
package netbar;

import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.*;
import javax.swing.ImageIcon;

public class Welcome extends JPanel {
    public Welcome() {
        try {
            jbInit();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        try {
            jbInit();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    private void jbInit() throws Exception {
        this.setLayout(null);
        jLabel1.setFont(new java.awt.Font("Dialog", Font.BOLD, 20));
        jLabel1.setForeground(Color.black);
        jLabel1.setText("欢迎来到网吧管理系统");
        jLabel1.setBounds(new Rectangle(61, 35, 233, 54));
        jLabel2.setForeground(Color.black);
        jLabel2.setText("开发小组:J.C");
        jLabel2.setBounds(new Rectangle(29, 178, 147, 23));
        jLabel3.setForeground(Color.black);
        jLabel3.setText("组长:J.C");
        jLabel3.setBounds(new Rectangle(29, 201, 76, 23));
        jLabel4.setForeground(Color.black);
        jLabel4.setText("组员:宋娜,J.C");
        jLabel4.setBounds(new Rectangle(29, 223, 348, 18));
        jLabel5.setForeground(Color.black);
        jLabel5.setIcon(null);
        jLabel5.setText("版本 1.0");
        jLabel5.setBounds(new Rectangle(142, 78, 56, 35));
        jLabel6.setFont(new java.awt.Font("Dialog", Font.BOLD, 16));
        jLabel6.setForeground(Color.red);
        jLabel6.setIcon(null);
        jLabel6.setText("SUN & J.C工作室");
        jLabel6.setBounds(new Rectangle(90, 261, 178, 28));
        this.setFont(new java.awt.Font("Dialog", Font.BOLD, 15));
        jLabel7.setIcon(pic);
        jLabel7.setBounds(new Rectangle(0, 0, 378, 330));
        this.add(jLabel3);
        this.add(jLabel4);
        this.add(jLabel2);
        this.add(jLabel1);
        this.add(jLabel6);
        this.add(jLabel5);
        this.add(jLabel7);
    }
    JLabel jLabel1 = new JLabel();
    JLabel jLabel2 = new JLabel();
    JLabel jLabel3 = new JLabel();
    JLabel jLabel4 = new JLabel();
    JLabel jLabel5 = new JLabel();
    ImageIcon pic=new ImageIcon("1.jpg");
    JLabel jLabel6 = new JLabel();
    JLabel jLabel7 = new JLabel();
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -