I found out that JTable class of the swing package allows one to draw a table on a container.It's as simple as creating the object of the class and passing two arguments into its construct,the first being number of rows and the second the number of columns.Then you go on ahead to add the object on to the container.(panel)
public static void main(String args)
frame = new JFrame("Table");
/*Now here's my problem.
How can I go about inserting values into the table?
Also,can I increase the size(width and height) of the cells?,
Is there any other thing I could do with this table apart fro inserting values and increasing its size?
I'll quite appreciate your contributions.Thanks */