This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SWT Questions?  RSS feed

 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!