• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SWT is part of Swing?

 
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 694
Mac OS X Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 694
Mac OS X Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic