- 628 名前:デフォルトの名無しさん [2009/11/08(日) 01:00:40 ]
- シンボルを見つけられませんというエラーが出ます
助けてください // <applet code="RotateEx.class" width="900" height="600"></applet> import java.awt.*; import java.io.*; import javax.swing.JApplet; import javax.imageio.ImageIO; public class RotateEx extends JApplet {Image kin, fu, sky; public void init() {try { kin = ImageIO.read(new File("images/kin.gif")); fu = ImageIO.read(new File("images/fu.gif")); sky = ImageIO.read(new File("images/sky.jpeg")); } catch (IOException e) {throw new RuntimeException(e);}} public void paint(Graphics g) {int x =270, y = 123; Graphics2D g2 = (Graphics2D)g; g2.drawImage(sky, 0, 0, 900, 600, this); for (int i = 0; i < 4; i++) {g2.drawImage(kin, x-20, y, this); g2.rotate(Math.PI/4, x, y);}}}
|

|