• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java2D in SWT/JFace

 
G Vigna
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
G Vigna
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I shall look into SWT_AWT.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic