Hello ...
Please can anyone help me in solving this problem ...
I want to learn how to draw in an
applet three circles and one square and a Tringle(using lines).
There is a qeustion that says :
Intialize a 2 dimention array to the following values
{ {1,10,10,130,180}, {1,40,40,20,20}, {1,90,40,20,20}, {2,50,140,50,10} }
{ {3,60,110,90,110}, {3,75,80,90,110}, {3,75,80,60,110} }
The First elemnt of each group represents the following
1- Oval
2- Rectangle
3- Line
The other 4 elements represents the arguments of the method ....
===================
The following codes is what i have done till now and the two dimention arrays are also their..
So Please help me in completing the code to get the draws in the applet ...
==========
import java.awt.*;
import javax.swing.*;
public class DrAr2 extends JApplet
{
JTextArea outputArea;
public void init()
{
outputArea = new JTextArea();
Container c = getContentPane();
c.add( outputArea );
int array1[][] = { {1,10,10,130,180}, {1,40,40,20,20}, {1,90,40,20,20}, {2,50,140,50,10} };
int array2[][] = { {3,60,110,90,110}, {3,75,80,90,110}, {3,75,80,60,110} };
}
}
======
The Bear