Click to See Complete Forum and Search --> : identifier expected
The One
02-28-2006, 11:38 AM
I need some help on ma program. not the whole thing but the class called 'Cal'. It keeps sayin identifier expected but i cant seem to fix it.So would someone help me fix this cos in ma program i need the Cal to work. Thanks!
See attachment!
The One
02-28-2006, 03:26 PM
anyone cos i really need this? THANKS.
The One
03-02-2006, 07:25 AM
so nobody knows how to fix it. Then does anyone have coding for another simple calendar??
ccoder
03-02-2006, 04:04 PM
It would help if you tell us where in the code you get the error. I took a look but didn't see any glaring errors.
The One
03-02-2006, 04:23 PM
i get the error at this part:
final JFrame f = new JFrame("Cal");
Container c = f.getContentPane();
f.setLayout (new flowLayout());
c.add(new Cal());
f.pack();
f.setVisible(true);
BigDog
03-03-2006, 02:01 PM
f.setLayout (new flowLayout());
looks suspect. There is a space in front of the first ( . try removing that.
You seem to have a lot of these types of syntax errors. are you using an IDE or just a text editor? an IDE should catch these for you.
The One
03-03-2006, 02:04 PM
doesnt work. does anyone have a simple calendar code?