that is simple man try this hint below. it is not the code. just a hint on how to accompolish that
--->
draw a line with coordinated as follows:
10,10,10,200,
another line with coordinated:
10,200, 200,200
third line as:
10,10, 200,200
that is it
u know how to draw a line. here is a code tip just put it in your applet:
publlic void paint(Graphics objGraphics)
{
objGraphics.drawLine(10, 10, 200, 200);
objGraphics.drawLine(10, 200, 200, 200);
objGraphics.drawLine(10, 10, 10, 200);
}