📄 guitread.java
字号:
/*
* 创建日期 2004-7-19
*
* 更改所生成文件模板为
* 窗口 > 首选项 > Java > 代码生成 > 代码和注释
*/
package org.course.thread;
import javax.swing.JFrame;
/**
* @author wangning
*
* 更改所生成类型注释的模板为
* 窗口 > 首选项 > Java > 代码生成 > 代码和注释
*/
public class GUITread extends JFrame {
private javax.swing.JPanel jContentPane = null;
public static void main(String[] args) {
System.out.println(Thread.activeCount());
System.out.println(Thread.currentThread());
new GUITread();
}
/**
* This is the default constructor
*/
public GUITread() {
super();
initialize();
System.out.println(Thread.activeCount());
System.out.println(Thread.currentThread());
}
private void initialize() {
this.setSize(300, 200);
this.setVisible(true);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -