Ok i got this so far, but now I'm having trouble compiling it. it won't let me compile over the Arc2D method. What am I doing wrong with it? It works fine with everything else. Also The coordinetes aren't right on the arc I plan on tweeking it after I figure out why it won't compile.
import java.awt.*;
import java.awt.geom.*;
import java.awt.image.*;
import javax.swing.*;
public class Winter extends JFrame {
public Winter()
{
super ("Winter Scene");
getContentPane().setBackground(Color.CYAN);
setSize(500,500);
setVisible(true);
}
public void paint(Graphics g)
{
super.paint(g);
Graphics2D g2d = (Graphics2D) g;
g2d.setPaint(Color.YELLOW);
g2d.fill (new Rectangle2D.Double(50, 200, 200, 200));
g2d.setPaint(Color.BLUE);
g2d.fill (new Rectangle2D.Double(65, 220, 50, 50));
g2d.setPaint(Color.BLUE);
g2d.fill (new Rectangle2D.Double(185, 220, 50, 50));
g2d.setPaint(Color.RED);
g2d.fill (new Rectangle2D.Double(125, 300, 50, 100));
g2d.setPaint(Color.BLUE);
g2d.fill (new Rectangle2D.Double(326, 390, 99, 40));
g2d.setPaint(Color.WHITE);
g2d.fill (new Ellipse2D.Double(325, 320, 100, 100));
g2d.setPaint(Color.WHITE);
g2d.fill (new Ellipse2D.Double(337, 260, 75, 75));
g2d.setPaint(Color.WHITE);
g2d.fill (new Ellipse2D.Double(348, 220, 50, 50));
g2d.setPaint(Color.BLACK);
g2d.fill (new Ellipse2D.Double(355, 230, 10, 10));
g2d.setPaint(Color.BLACK);
g2d.fill (new Ellipse2D.Double(378, 230, 10, 10));
g2d.setPaint(Color.BLACK);
//g2d.setStroke( new BasicStroke(1.Of));
g2d.draw (new Arc2D.Double(365,250, 40, 40, 265, 275));
}
public static void main (
String args[])
{
Winter application = new Winter();
application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}