import java.awt.EventQueue;import javax.swing.JFrame;
public class h extends JFrame { /**
* Launch the application
* @param args
*/
public static void main(String args[]) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
h frame = new h();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
} /**
* Create the frame
*/
public h() {
super();
setBounds(100, 100, 500, 375);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//
}}
public class h extends JFrame { /**
* Launch the application
* @param args
*/
public static void main(String args[]) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
h frame = new h();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
} /**
* Create the frame
*/
public h() {
super();
setBounds(100, 100, 500, 375);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//
}}
解决方案 »
- java中怎么算2 除以 3 等于 0.66666
- 自己尝试写了一个类,就是出错...希望大家鼓励下...
- 不用第三个变量交换俩整形变量的值
- 程序怎么写 请教大家
- 如何将查询的结果集写入到 .txt文件,Excel,Word中?
- 关于在jb中新建XML!
- 如何让JTree初始化的时候全部展开,并且让某个指定的叶子用不同的颜色表示出来?
- 为什么我的JBUILD7不认package
- System.getProperty(String key),这里的输入参数key有哪些值,有没有查询列表?
- 为什么不对呀???为什么???急呀??
- 关于有返回值无返回值的意思,我一直没明白,帮帮我
- 关于字符串空验证的问题
public static void main(String args[]) {
h frame = new h();
frame.setVisible(true);
}
这样就可以了
这应该能加快程序的速度,然而一楼却说这样不好,不太明白。
望高手指点。