aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Java2D in SWT/JFace Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Java2D in SWT/JFace" Watch "Java2D in SWT/JFace" New topic

Java2D in SWT/JFace

G Vigna

Joined: Jun 01, 2005
Posts: 11

I am working in migrating from Swing to SWT. Some part of the existing application has Java2D contents (diagrams). Is it possible to reuse the Java2D part in SWT?

Expecting feedback

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24189

It's possible to use Swing components within your SWT application, although last time I checked this worked only on Windows, and was supported only in an internal package. But they were working on making it an exported API and also giving it cross-platform support.

Search for the Eclipse API class named "SWT_AWT" to check its current status.

[Jess in Action][AskingGoodQuestions]
G Vigna

Joined: Jun 01, 2005
Posts: 11
Thanks. I shall look into SWT_AWT.
I agree. Here's the link:
subject: Java2D in SWT/JFace