?? 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 + -