I'm not sure why the forum is doing it. I checked the message source and it's fine, but look at the setDefaultCloseOperation function the forum shows a space in the WindowConstant class name. There of course should be no space there.
I would suggest getting an IDE which supports Javascript so you can easily see any syntax errors. Netbeans and Eclipse (eclipse uses a plugin) both support Javascript. There are probably some more lightweight editors however that would do the job as well.
Note: I fixed the above example by putting spaces between around the function argument.
Last edited by uda; 10-11-2009 at 01:46 AM.
Reason: Fixed the message source with the example.
|