netbeans,applet问题
编写好applet程序后,运行,没有出现书上说的界面,那该怎么看?按哪个键?/**Tochangethistemplate,chooseTools|Templates*a...
编写好applet程序后,运行,没有出现书上说的界面,那该怎么看?按哪个键?
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication1;
import java.applet.Applet;
import java.awt.*;
/**
*
* @author Administrator
*/
public class NewApplet extends Applet {
public void paint(Graphics d){
d.drawLine(30,5,40,5);
d.drawRect(40, 10, 50, 20);
d.fillRect(60, 30, 70, 40);
d.drawRoundRect(110, 10, 130, 50, 30, 30);
}
} 展开
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication1;
import java.applet.Applet;
import java.awt.*;
/**
*
* @author Administrator
*/
public class NewApplet extends Applet {
public void paint(Graphics d){
d.drawLine(30,5,40,5);
d.drawRect(40, 10, 50, 20);
d.fillRect(60, 30, 70, 40);
d.drawRoundRect(110, 10, 130, 50, 30, 30);
}
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询