You are on page 1of 4

/*

* 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.
*/
package javaapplication1;

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.
*/

public void paint(Graphics g) {

/*
* 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 {

public void paint(Graphics g)


{

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.fillOval(500, 78, 50, 40);


g.drawOval(500, 78, 50, 40);

g.fillOval(520, 90, 40, 40);


g.drawOval(520, 90, 40, 40);
g.setColor(Color.white);

g.fillOval(460, 78, 50, 40);


g.drawOval(460, 78, 50, 40);

g.fillOval(480, 80, 60, 40);


g.drawOval(480, 80, 60, 40);

g.fillOval(480, 90, 50, 40);


g.drawOval(480, 90, 50, 40);

g.fillOval(450, 90, 50, 40);


g.drawOval(450, 90, 50, 40);
// TODO overwrite st
g.setColor(Color.white);
g.fillOval(70, 60, 50, 40);
g.drawOval(70, 60, 50, 40);

g.fillOval(60, 80, 60, 40);


g.drawOval(60, 80, 60, 40);

g.fillOval(90, 60, 70, 40);


g.drawOval(90, 60, 70, 40);

g.fillOval(110, 85, 60, 45);


g.drawOval(110, 85, 60, 45);

g.fillOval(130, 80, 50, 50);


g.drawOval(130, 80, 50, 50);

g.fillOval(300, 35, 40, 28);


g.drawOval(300, 35, 40, 28);

g.fillOval(320, 35, 80, 28);


g.drawOval(320, 35, 80, 28);

g.fillOval(375, 35, 40, 28);


g.drawOval(375, 35, 40, 28);

g.fillOval(322, 50, 50, 28);


g.drawOval(322, 50, 50, 28);

g.fillOval(350, 50, 40, 28);


g.drawOval(350, 50, 40, 28);

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
*/
}
}

// TODO overwrite start(), stop() and destroy() methods

You might also like