偶 偶尔幽默 Unregistered / Unconfirmed GUEST, unregistred user! 2006-12-29 #1 创建了一个Frame,添加了一句System.out.println("nihao"); 但我不知道怎么运行,若是按 F9的话,会出现一个设置框,不知道怎么设置
偶 偶尔幽默 Unregistered / Unconfirmed GUEST, unregistred user! 2006-12-29 #3 JBulider206代码如下: package nihao; //import java.awt.BorderLayout; import javax.swing.JFrame; import java.io.*; /** * <p>Title: </p> * * <p>Description: </p> * * <p>Copyright: Copyright (c) 2006</p> * * <p>Company: </p> * * @author not attributable * @version 1.0 */ public class Frame1 extends JFrame { // BorderLayout borderLayout1 = new BorderLayout(); public Frame1() { try { jbInit(); } catch (Exception exception) { exception.printStackTrace(); } } private void jbInit() throws Exception { System.out.println("你好!"); // getContentPane().setLayout(borderLayout1); } } 编写完后怎么运行?是按F9吗? 是的话怎么设置随后打开的对话框?
JBulider206代码如下: package nihao; //import java.awt.BorderLayout; import javax.swing.JFrame; import java.io.*; /** * <p>Title: </p> * * <p>Description: </p> * * <p>Copyright: Copyright (c) 2006</p> * * <p>Company: </p> * * @author not attributable * @version 1.0 */ public class Frame1 extends JFrame { // BorderLayout borderLayout1 = new BorderLayout(); public Frame1() { try { jbInit(); } catch (Exception exception) { exception.printStackTrace(); } } private void jbInit() throws Exception { System.out.println("你好!"); // getContentPane().setLayout(borderLayout1); } } 编写完后怎么运行?是按F9吗? 是的话怎么设置随后打开的对话框?