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!
# 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