• Post Reply Bookmark Topic Watch Topic
  • New Topic

GroupLayout in 1.5 - is it possible?  RSS feed

 
Michelle Kyamo
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a bunch of applets I wrote, and the layouts are done using GroupLayout. However, they need to work on Macs as well (Mac java is only 1.5) and I just realized 1.5 doesn't have GroupLayout. Is there any way I can get it to work with 1.5 or am I stuck having to redo all of the layouts (which will take a long time)?

Googling reveals people talking about something "org.jdesktop.layout.GroupLayout" to accomplish this, but "import org.jdesktop.layout.GroupLayout;" cannot be resolved. It may be something within Netbeans(which I am not using)?

Thanks in advance for any help.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That class can be found at https://swing-layout.dev.java.net/servlets/ProjectDocumentList?folderID=11880&expandFolder=11880&folderID=0.

As an aside, Java 6 is available on Intel Macs running OS X 10.6 (a.k.a Snow Leopard), but there are still many OS X users who don't have that, so it seems wise not to assume that Java 6 is available on OS X.
 
Michelle Kyamo
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:That class can be found at https://swing-layout.dev.java.net/servlets/ProjectDocumentList?folderID=11880&expandFolder=11880&folderID=0.

As an aside, Java 6 is available on Intel Macs running OS X 10.6 (a.k.a Snow Leopard), but there are still many OS X users who don't have that, so it seems wise not to assume that Java 6 is available on OS X.


Thank you!

Unfortunately it did require changing a bunch of stuff like "addComponent" to "add", etc. But this was accomplished with a number of find/replace, so obviously not as much work as relayouting the whole thing. Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!