repl.it
@BerylHoffman/

Java-Swing-Turtle

Java Swing

This is Barb Ericson's Turtle classes in Java Swing.

fork
loading
Files
  • Main.java
  • DigitalPicture.class
  • DigitalPicture.java
  • Main.class
  • ModelDisplay.class
  • ModelDisplay.java
  • nohup.out
  • PathSegment.class
  • PathSegment.java
  • Pen.class
  • Pen.java
  • Picture.class
  • Picture.java
  • PictureFrame.class
  • PictureFrame.java
  • Pixel.class
  • Pixel.java
  • SimplePicture.class
  • SimplePicture.java
  • SimpleTurtle.class
  • SimpleTurtle.java
  • Turtle.class
  • Turtle.java
  • World.class
  • World.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import javax.swing.*;
import java.awt.event.*;
import java.util.*;
import java.awt.*;

public class Main {
  public static void main(String[] args) {  
    World world = new World(400,400);
   
     
    Turtle yertle = new Turtle(world);
    // Add your code here
    yertle.forward();
    yertle.turnRight();
    yertle.forward();

  
    world.setVisible(true);
  }
}