Meaningless Drivel is fun!*
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: 381
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: 24183

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?
Similar Threads
NX: Notes on a design that passed 389/400
SWT Questions?
Is SWT worth learning *instead of* Swing?
choosing the right application framework
SWT and swing