my dog learned polymorphism*
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Java2D in SWT/JFace" Watch "Java2D in SWT/JFace" New topic
Author

Java2D in SWT/JFace

G Vigna
Greenhorn

Joined: Jun 01, 2005
Posts: 11
Hi,

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

Vigna
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

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
Greenhorn

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