Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

Swing layouts vs. SWT layouts?

Thread view: 
Ramon F Herrera - 10 Nov 2007 04:54 GMT
Swing offers:
- AbsoluteLayout
- FlowLayout
- BorderLayout
- GridLayout
- CardLayout
- GridBagLayout
- BoxLayout
- SpringLayout
- FormLayout

While SWT offers:
- AbsoluteLayout
- GridLayout
- FormLayout
- FillLayout
- RowLayout

Shouldn't both lists be identical?

-Ramon
Knute Johnson - 10 Nov 2007 05:20 GMT
> Swing offers:
>  - AbsoluteLayout
[quoted text clipped - 17 lines]
>
> -Ramon

No

Signature

Knute Johnson
email s/nospam/knute/

Andrew Thompson - 10 Nov 2007 05:24 GMT
>Swing offers:
> - AbsoluteLayout

Not in J2SE 6.0.*

> - FlowLayout

AWT

> - BorderLayout

AWT

> - GridLayout

AWT

> - CardLayout

AWT

> - GridBagLayout

AWT

> - BoxLayout

Yep.

> - SpringLayout

Yep.

> - FormLayout

Not in J2SE 6.0.*

* I suspect these are NetBeans specific layouts.

>While SWT offers:
> - AbsoluteLayout
[quoted text clipped - 4 lines]
>
>Shouldn't both lists be identical?

Dunno'.  Why should they be?  Can't J2SE layouts be used
in SWT?  If so, that only leaves the layouts that Swing does not
provide, or that SWT thinks it can do better.

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Wayne - 10 Nov 2007 06:17 GMT
>> Swing offers:
>> - AbsoluteLayout
[quoted text clipped - 47 lines]
> in SWT?  If so, that only leaves the layouts that Swing does not
> provide, or that SWT thinks it can do better.

A good way to see the dozen or so layouts available to swing/awt is
to check the "known implementing classes" for java.awt.LayoutManager
and LayoutManager2.  There are many special use layouts, but anyone
can use them!

-Wayne
Andrew Thompson - 10 Nov 2007 07:24 GMT
..
>...There are many special use layouts, but anyone
>can use them!

<tongue in cheek>
That's a big claim, given some people can f*ck up
use of FlowLayout.
</tongue in cheek>

Signature

Andrew Thompson
http://www.athompson.info/andrew/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.