Draw an Irish Flag

Hi,

I would like to make an Applet that draws the Irish Flag it should fill the applet window at all times, whatever the size of the applet window. The three stripes should all be the same size as each other.

Shall i draw three different rectangles or..?

This what i have got at the moment what i think i should use:

import java.applet.Applet;

import java.awt.Color;

import java.awt.Graphics;

import java.awt.Graphics2D;

import java.awt.Rectangle;

publicclass IrishFlagextends Applet

{

publicvoid paint(Graphics g)

{

Graphics2D g2 = (Graphics2D)g;

}

}

thanks for any pointers.

[1121 byte] By [Disco_Stua] at [2007-11-26 17:39:21]
# 1
Get the width of the Applet and divide by three. This will be the width of each of the three rectangles. You can then just draw three different colored rectangles that are the height of the applet.
CaptainMorgan08a at 2007-7-9 0:07:30 > top of Java-index,Security,Cryptography...
# 2
thanks
Disco_Stua at 2007-7-9 0:07:30 > top of Java-index,Security,Cryptography...