@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
  • 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
  • nohup.out

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.3881121619424248","path":"Main.java","file":{"path":"Main.java","content":{"asEncoding":{"base64":"aW1wb3J0IGphdmF4LnN3aW5nLio7CmltcG9ydCBqYXZhLmF3dC5ldmVudC4qOwppbXBvcnQgamF2YS51dGlsLio7CmltcG9ydCBqYXZhLmF3dC4qOwoKcHVibGljIGNsYXNzIE1haW4gewogIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsgIAogICAgV29ybGQgd29ybGQgPSBuZXcgV29ybGQoNDAwLDQwMCk7CiAgIAogICAgIAogICAgVHVydGxlIHllcnRsZSA9IG5ldyBUdXJ0bGUod29ybGQpOwogICAgLy8gQWRkIHlvdXIgY29kZSBoZXJlCiAgICB5ZXJ0bGUuZm9yd2FyZCgpOwoKICAKICAgIHdvcmxkLnNldFZpc2libGUodHJ1ZSk7CiAgfQp9Cg=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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();

  
    world.setVisible(true);
  }
}