📄 systemlogimage.java~28~
字号:
package com.cdaccp.view.frame;
import java.awt.*;
import javax.swing.*;
import java.awt.BorderLayout;
import java.awt.Font;
import java.util.Timer;
import com.util.QiDong;
public class SystemLogImage
extends JFrame {
BorderLayout borderLayout1 = new BorderLayout();
JPanel jPanel1;
JLabel lbl_logo = new JLabel();
JTextArea jTextArea1 = new JTextArea();
ImageIcon logo = new ImageIcon("logo.gif");
ImageIcon jiemian = new ImageIcon("background .png");
public SystemLogImage() {
try {
jbInit();
}
catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
jPanel1 = (JPanel) getContentPane();
jPanel1.setLayout(borderLayout1);
setSize(new Dimension(800,500));
//设置启动画面的边框为无
this.setUndecorated(true);
//给标签设置启动画面的图片
lbl_logo.setIcon(jiemian);
jTextArea1.setFont(new java.awt.Font("楷体_GB2312", Font.BOLD, 30));
jTextArea1.setForeground(new Color(214, 138, 255));
jTextArea1.setEditable(false);
jTextArea1.setText(" 系统加载中");
jPanel1.add(lbl_logo, java.awt.BorderLayout.CENTER);
jPanel1.add(jTextArea1, java.awt.BorderLayout.SOUTH);
Timer timer = new Timer();
timer.schedule(new QiDong(jTextArea1), 0, 50);//时间控制
this.setIconImage(logo.getImage());
this.setTitle("欢迎使用无限资产管理系统");
}
public static void main(String[] args) {
SystemLogImage a = new SystemLogImage();
a.setVisible(true);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -