Professional Documents
Culture Documents
import java.applet.Applet;
import java.awt.*;
/**
*
* @author Siduna
*/
public class hause1 extends Applet {
/**
* Initialization method that will be called after the apple is loaded into
* the browser.
*/
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Lazy-PC
*/
import java.applet.*;
import java.awt.Color;
import java.awt.Graphics;
public class appletClass extends Applet {
g.setColor(Color.cyan);
g.drawRect(0, 0, 2000, 1500);
g.fillRect(0, 0, 2000, 1500);
g.drawRect(200,150,200,150);
g.setColor(Color.BLUE);
g.fillRect(200, 160, 200, 150);
g.drawRect(220,200,30,30);
g.setColor(Color.BLACK);
g.fill3DRect(265, 245, 60, 60, true);
g.setColor(Color.WHITE);
g.fillRect(220, 200, 30, 30);
g.drawRect(350,200,30,30);
g.setColor(Color.WHITE);
g.fillRect(350, 200, 30, 30);
g.setColor(Color.DARK_GRAY);
g.drawLine(250, 215,220, 215);
g.drawLine(235, 200,235, 230);
g.drawLine(380, 215, 350, 215);
g.drawLine(365, 200,365, 230);
g.setColor(Color.GRAY);
g.drawRect(55, 170, 35, 140);
g.fillRect(55, 170, 35, 140);
g.setColor(Color.YELLOW);
g.fillOval(420, 70, 70,63);
g.setColor(Color.white);
g.setColor(Color.green);
g.fillOval(5, 100, 140, 80);
g.drawOval(5, 100, 140, 80);
g.setColor(Color.green);
g.fill3DRect(0, 300, 600, 40, true);
g.setColor(Color.BLACK);
g.drawString("this is my home", 500, 320);
g.draw3DRect(220, 110, 20, 50, true);
g.fill3DRect(220, 110, 20, 50, true);
g.setColor(Color.MAGENTA);
int x[]={300,200,400};
int y[]={80,160,160};
g.drawPolygon(x, y, 3);
g.fillPolygon(x, y, 3);
g.setColor(Color.BLUE);
g.drawLine(300, 80, 200, 160);
g.drawLine(300, 80, 400, 160);
// the greeting
}
}
/* Group Name:
Kidus Daniel 01564/11
Siduna Lemma 0212/09
Tigist Tadesse
*/
}
}