📄 frametest.java
字号:
/**
* @author:lj
* @date&time:Aug 16, 2007 10:12:07 AM
* @instruction:
*/
package demo;
import java.awt.GraphicsConfiguration;
import java.awt.HeadlessException;
import javax.swing.JFrame;
import org.eclipse.swt.widgets.Display;
/**
* @author lj
*
*/
public class FrameTest extends JFrame {
/**
* @throws HeadlessException
*/
public FrameTest() throws HeadlessException {
// add coding
}
/**
* @param gc
*/
public FrameTest(GraphicsConfiguration gc) {
super(gc);
// add coding
}
/**
* @param title
* @throws HeadlessException
*/
public FrameTest(String title) throws HeadlessException {
super(title);
// add coding
}
/**
* @param title
* @param gc
*/
public FrameTest(String title, GraphicsConfiguration gc) {
super(title, gc);
// add coding
}
/**
* @author:lj
* @date&time:Aug 16, 2007 10:12:08 AM
* @Instruction:
* @param args
*/
public static void main(String[] args) {
// body code
try {
FrameTest frame = new FrameTest();
frame.setSize(400, 600);
frame.add(new SWTPane());
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -