This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Getting MEAN with Mongo, Express, Angular, and Node and have Simon Holmes on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Single API for both SWT and Swing? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Single API for both SWT and Swing?" Watch "Single API for both SWT and Swing?" New topic

Single API for both SWT and Swing?

Siegfried Heintze
Ranch Hand

Joined: Aug 11, 2000
Posts: 388
I'm writing a swing applet. If I want to run the same functionality embedded in a eclipse plug in, do I have to rewrite it in SWT or has someone else written a wrapper for Swing and SWT so I only have to write it once?
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24189

There are some very shaky, beta-level, works-only-on-some-platforms solutions for mixing Swing and SWT. Unless it's very complex, the easiest and in any event most reliable thing to do would be to rewrite it.

[Jess in Action][AskingGoodQuestions]
jQuery in Action, 2nd edition
subject: Single API for both SWT and Swing?