- 294 名前:デフォルトの名無しさん mailto:sage [2009/10/19(月) 22:57:52 ]
- コンパイルできません、助けてください
//<applet code="PaintEx1.class" width="400" height="500"></applet> import javax.swing.JApplet; import java.awt.*; public class PaintEx1 extends JApplet { public void init() { setBackground(Color.WHITE); } public void paint(Graphics g) { g.setColor(Color.BLUE); g.draw3DRect(int 10, int 10, int 25, int 20, boolean true); g.setColor(Color.RED); g.drawArc(int 45, int 10, int 25, int 20, int 32, int 230); int[] x1 = {int 80, int 120, int 80}; int[] y1 = {int 30, int 5, int 30}; g.setColor(Color.GREEN); g.drawPolygon(x1, y1, int 3); } }
|

|