📄 usershow.java
字号:
// SendPay.java
package classFile;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.event.*;
import java.sql.*;
class UserShow extends JPanel
{
// 控件定义
private JLabel title;
private JEditorPane editorArea;
public UserShow()
{
//
this.setLayout(null);
this.setBackground(Color.red);
//
title = new JLabel("欢迎使用", JLabel.CENTER);
editorArea = new JEditorPane();
//
title.setFont(new Font("隶书", Font.BOLD, 25));
title.setForeground(Color.green);
editorArea.setText("亲爱的用户:\n 你好,功能很简单就不用我多介绍了!!" +
"如果你很忙的话,你可以只花二分钟,就足以把它玩转!!!\n"+
"\n\t\t\t\t\t 作者:myself");
editorArea.setEditable(false);
editorArea.setFont(new Font("隶书", Font.PLAIN, 15));
editorArea.setBackground(new Color(20, 20, 20));
editorArea.setForeground(Color.green);
//
title.setBounds(200, 0, 200, 50);
editorArea.setBounds(10, 50, 670, 420);
editorArea.setBorder(BorderFactory.createLineBorder(Color.blue));
//
this.add(title);
this.add(editorArea);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -