有高手吗,帮我解决一下这个问题好吗 你不是已经发过一次这样的帖子了么?import borland.jbcl.layout.*;换成import com.borland.jbcl.layout.*;//你这个包中少写了一个com,我试了上个Applet,试好着的,除了这个com少写了以外。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Untitled1.java文件import java.awt.*;import java.awt.event.*;import java.applet.*;import com.borland.jbcl.layout.*;//import com.sun.java.swing.UIManager;public class Untitled1 extends Applet { boolean isStandalone = false; GridBagLayout gridBagLayout1 = new GridBagLayout(); GridBagConstraints con=new GridBagConstraints(); XYLayout xYLayout1 = new XYLayout(); TextField textField1 = new TextField(); Label label1 = new Label(); XYLayout xYLayout2 = new XYLayout(); public Untitled1() { } public void init() { try { jbInit(); } catch (Exception e) { e.printStackTrace(); } } private void jbInit() throws Exception { textField1.setText("textField1"); label1.setText("label1"); this.setLayout(xYLayout2); con.weightx=1; con.weighty=2; this.add(label1, new XYConstraints(0, 0, 0, 0)); this.add(textField1, new XYConstraints(28, 18, -1, -1)); } public String getAppletInfo() { return "Applet Information"; } public String[][] getParameterInfo() { return null; }}HTML文件<html><head></head><body><applet code="Untitled1.class" height=300 width=300></applet></body></html>测试通过!!!如果需要我可以把工程发给你!!! java执行系统命令,为啥要copy流 MyEclipse出现启动错误 json-default包下自定义拦截器的问题 怎么通过java得到某个下载连接的下载速度值? 谁能帮帮我 请教:TCP服务端,是为每个请求开一个线程还是其他的处理方式? 在tomcat5下能调用批处理吗~~ 我怎么一开始用LOMBOZ的话就出现以下问题 如何建立一个简单的J2EE应用程序呀 Hello World的一个疑惑。 调查一下大家的可用分都多少了? 写BMP-EntityBean时的几个ODBC SQL Server Driver问题
import java.awt.event.*;
import java.applet.*;
import com.borland.jbcl.layout.*;
//import com.sun.java.swing.UIManager;
public class Untitled1 extends Applet {
boolean isStandalone = false;
GridBagLayout gridBagLayout1 = new GridBagLayout();
GridBagConstraints con=new GridBagConstraints();
XYLayout xYLayout1 = new XYLayout();
TextField textField1 = new TextField();
Label label1 = new Label();
XYLayout xYLayout2 = new XYLayout();
public Untitled1() {
} public void init() {
try {
jbInit();
}
catch (Exception e) {
e.printStackTrace();
}
}
private void jbInit() throws Exception {
textField1.setText("textField1");
label1.setText("label1");
this.setLayout(xYLayout2);
con.weightx=1;
con.weighty=2;
this.add(label1, new XYConstraints(0, 0, 0, 0));
this.add(textField1, new XYConstraints(28, 18, -1, -1));
} public String getAppletInfo() {
return "Applet Information";
}
public String[][] getParameterInfo() {
return null;
}
}
HTML文件<html>
<head>
</head>
<body>
<applet code="Untitled1.class" height=300 width=300>
</applet>
</body>
</html>
测试通过!!!如果需要我可以把工程发给你!!!