File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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: 397
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: 24199

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]
I agree. Here's the link:
subject: Single API for both SWT and Swing?
It's not a secret anymore!