Win a copy of Java Challengers this week in the Java in General forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

SWT Questions?

 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is SWT built on Swing/AWT?
Do I have to use SWT to wirte plug-ins for Eclipse? Can I use Swing?
I know SWT does not support Drag-N-Drop? What does Swing have, but SWT not?
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Is SWT built on Swing/AWT?



No. SWT is a completely separate implementation that doesn't build on either AWT or Swing.

Do I have to use SWT to wirte plug-ins for Eclipse? Can I use Swing?



Since Eclipse is written in SWT, if your plug-in has GUI elements, it would probably fit in better if you did it in SWT. You could always have an SWT button or menu in Eclipse launch a Swing JFrame, or you could use something like SwingWT, but it would probably fit better with SWT.

I know SWT does not support Drag-N-Drop?


No, it really does.

What does Swing have, but SWT not?


One of the biggest things I noticed missing was a JDesktopPane/JInternalFrame replacement. The graphics context drawing capabilities were nowhere near as good as Graphics2D, though I have heard there have been some improvements in this area.
reply
    Bookmark Topic Watch Topic
  • New Topic