User talk:Mlzg4

From Wikipedia, the free encyclopedia

He is totally teh shits


// Program: prog3_04.java // Programmer: Michael Graczyk // Description: // Date:11/05/06 // Methods: main import java.applet.*; import java.util.*; import javax.swing.*; import java.awt.*;


public class prog3_04 extends Applet { public void paint(Graphics g) { g.setColor(Color.black); g.drawRect(126,126,150,150); Color bright1 = new Color(225,225,225); Color bright2 = new Color(235,235,235); Color dark1 = new Color(160,160,160); int sidex[] = {170, 276, 276, 170}; int sidey[] = {20, 126, 276, 170}; int bottomx[] = {276, 126, 20, 170}; int bottomy[] = {276, 276, 170, 170}; int backx[] = {20,170,170,20}; int backy[] = {20,20,170,170}; g.setColor(bright1); g.fillPolygon(sidex, sidey, 4); g.setColor(dark1); g.fillPolygon(bottomx, bottomy, 4); g.setColor(bright2); g.fillPolygon(backx, backy, 4); g.setColor(Color.black); g.drawRect(20,20,150,150); // g.drawLine(20,20,126,126); g.drawLine(170,170,276,276); g.drawLine(170,20,276,126); g.drawLine(20,170,126,276); } }



<APPLET CODE = "prog3_04.class" WIDTH=800 HEIGHT=600> </APPLET>