String and grid woes

Hi, I have a few problems with a string displaying in my layout. here's my string...

String Days[] ={"Sun","Mon","Tues","Wed","Thur","Fri","Sat"};

I've created a grid like so...

DaysPanel.setLayout(new GridLayout(7,2));

I've tried so many ways of trying to get the days to appear in the grid, but they just wont. I know I'm at fault here so any help would be great. Here's what I was thinking would work, but doesnt...

DaysPanel.add(Days)

I've tried many variants of this and nothing seems to be happening.

Any Ideas as to why the days wont show in the grid?

I hope my post has made some sense. thanks D

[931 byte] By [-D-a] at [2007-11-26 14:29:45]
# 1

That doesn't even compile, right? (It does help if you describe the problem, and that includes telling us what the symptoms of the problem are.) That's because you have to add components to the GUI, not just strings. I would suggest you read the Swing tutorial. (Or the AWT tutorial, if you're only using that.)

DrClapa at 2007-7-8 2:24:12 > top of Java-index,Java Essentials,Java Programming...
# 2
What is DaysPanel? Is it a JPanel? If so, there's no add method that takes a String[]. If you want to add those Strings to JLabels and then add the JLabels to the Panel, that could work, but you can't just add an array and have it automatically layout the individual elements.
hunter9000a at 2007-7-8 2:24:12 > top of Java-index,Java Essentials,Java Programming...