GroupLayout on Mac

Hey,

So I've been asked to help a friend set up some swing source code (which works fine on windows/linux) on his mac. I tried to get it working using Xcode which was an adventure and a half. Then I tried to set up the code in Eclipse.

I get a whole slew of errors whenever I make calls like javax.swing.GroupLayout. As I could see GroupLayout is not in the javax.swing package, or maybe I'm missing something. Is there anything I can do to solve this problem?

Thanks!

[496 byte] By [kerryblue19a] at [2007-11-27 9:41:21]
# 1
> I get a whole slew of errors whenever I make calls> like javax.swing.GroupLayout. As I could see> GroupLayout is not in the javax.swing package, or> maybe I'm missing something.It is in the javax.swing package. What do you mean?
lem@phila at 2007-7-12 23:20:09 > top of Java-index,Desktop,Core GUI APIs...
# 2
http://java.sun.com/javase/6/docs/api/javax/swing/GroupLayout.html
lem@phila at 2007-7-12 23:20:09 > top of Java-index,Desktop,Core GUI APIs...
# 3

> Hey,

> So I've been asked to help a friend set up some swing

> source code (which works fine on windows/linux) on

> his mac. I tried to get it working using Xcode which

> was an adventure and a half. Then I tried to set up

> the code in Eclipse.

>

> I get a whole slew of errors whenever I make calls

> like javax.swing.GroupLayout. As I could see

> GroupLayout is not in the javax.swing package, or

> maybe I'm missing something. Is there anything I can

> do to solve this problem?

> Thanks!

I think that it's only present in Java 1.6 -- also known as Java 6 (correct me if I'm wrong). I'm betting that your Eclipse is set up for a different compiler. Check the settings and then get back to me to let me know if I win that bet. :)

To check on compiler version, go to Window -- Preference -- Java -- Compiler then look at compiler copliance level. Set it to 6.0 and you'll probably be good to go. Again, please let us know if this does it.

Message was edited by:

petes1234

petes1234a at 2007-7-12 23:20:09 > top of Java-index,Desktop,Core GUI APIs...
# 4
> I think that it's only present in Java 1.6 -- also> known as Java 6 (correct me if I'm wrong). Yup. It's only since Java 6.
lem@phila at 2007-7-12 23:20:09 > top of Java-index,Desktop,Core GUI APIs...
# 5
Java 6 has not been released on OS X yet, and is unlikely to preceed the release of OS X 10.5 in October
macrules2a at 2007-7-12 23:20:09 > top of Java-index,Desktop,Core GUI APIs...