java小程序查看器为什么不显示结果,代码正确的,在学校机房可以显示,在我电脑上显示空白
importjavax.swing.*;importjava.awt.*;publicclassfaceextendsJApplet{publicvoidprint(Gr...
import javax.swing.*;
import java.awt.*;
public class face extends JApplet {
public void print(Graphics f){
f.drawOval(100,50,200,200);
f.fillOval(155,100,10,20);
f.fillOval(230, 100, 10,20);
f.drawArc(150,160,100,50,180,180);
}
} 展开
import java.awt.*;
public class face extends JApplet {
public void print(Graphics f){
f.drawOval(100,50,200,200);
f.fillOval(155,100,10,20);
f.fillOval(230, 100, 10,20);
f.drawArc(150,160,100,50,180,180);
}
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询