?? usershow.java
字號(hào):
// 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("隸書(shū)", Font.BOLD, 25));
title.setForeground(Color.green);
editorArea.setText("親愛(ài)的用戶(hù):\n 你好,功能很簡(jiǎn)單就不用我多介紹了!!" +
"如果你很忙的話(huà),你可以只花二分鐘,就足以把它玩轉(zhuǎn)!!!\n"+
"\n\t\t\t\t\t 作者:myself");
editorArea.setEditable(false);
editorArea.setFont(new Font("隸書(shū)", 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);
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -