• Post Reply Bookmark Topic Watch Topic
  • New Topic

SWT is part of Swing?

 
Anthony Karta
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is SWT part of Swing or they are different animal?

afaik, Swing is part of Java Sun package. Not sure about SWT

can anyone explain to me more?

also, is there any free designer tool for both or is it specific either Swing or SWT?

regards,
anthony
 
Kaydell Leavitt
Ranch Hand
Posts: 690
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swing (and AWT) come from Sun with the Java Standard Edition. SWT and JFace are alternatives to Swing and AWT.

NetBeans is a free IDE that comes with a visual Swing designer tool. I've heard that NetBeans is pretty lame but I guess you could use it to generate Swing code and then use the Swing code in your favorite IDE.

I believe that Eclipse is built with SWT, but Swing is much more commonly used. You could use either SWT or Swing. Sometimes, you have to just make a decision and run with it.

Kaydell
[ July 10, 2007: Message edited by: Kaydell Leavitt ]
 
Anthony Karta
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kadell Thanks for reply

can I use Swing designer to create SWT application?

I come from j2ee world, never build desktop application.

thanks again
 
Kaydell Leavitt
Ranch Hand
Posts: 690
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anthony,

No, you can't use Swing designers to produce SWT (or vice versa) because like you asked, Swing and SWT are different types of animals.

I just looked into switching from Swing to SWT. One drawback of SWT is that it doesn't always do automatic garbage collection. I guess it's not that bad though, according to the article in wikipedia, it says

In practice, the only SWT objects which a developer must explicitly dispose are the subclasses of Resource, such as Image, Color, and Font objects


Here's the link in wikipedia.org that I was reading:

Wikipedia on the SWT Toolkit

Kaydell
[ July 11, 2007: Message edited by: Kaydell Leavitt ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!