useface.java

来自「数据挖掘算法的实现」· Java 代码 · 共 30 行

JAVA
30
字号
import java.awt.Font;

import javax.swing.JFrame;
import javax.swing.JTextArea;

public class UseFace 
{

 	 private JTextArea ta;
	 private JFrame window;
	 
     public UseFace ()
     {
   	     System.out.print("UseFace Finish!");
    	 window = new JFrame("使用简介");
    	 ta = new JTextArea();
    	 String s = new String("使用简介");
    	 ta.setText(s);
    	 ta.setVisible(true);
    	 window.setVisible(true);
    	 window.add(ta);
    	 //window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         
    	 window.setSize(450,450);
         window.setFont(new Font("Simsun",Font.PLAIN,20));
         window.setLocation(200,300);
         //window.setBackground();
     }
}

⌨️ 快捷键说明

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