Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SWT Questions?

 
S. Palanigounder
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • 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?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic