Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » awt in the RAP
awt in the RAP [message #546733] Tue, 13 July 2010 21:30 Go to next message
Eclipse UserFriend
i need to paint with the swing and awt tool, in theRCP program, it is running well. but when i transform it into RAP, i found the "SWT_AWT" tool makes no action. it is said that the RAP does not support the AWT and SWing so far. can somebody have the method to fixed it. the source code is like this:

final Frame converterFrame = AWT_AWT.new_Frame(frameComp);
view = new BPMNGraphView(g, "label");
converterFrame.add(view);
Re: awt in the RAP [message #546770 is a reply to message #546733] Wed, 14 July 2010 03:27 Go to previous messageGo to next message
Eclipse UserFriend
HI,

with RAP 1.3 it's possible to paint in Canvas widget. Maybe this will help.

Best,
Ivan

On 07/14/2010 4:30 AM, zhuzekun wrote:
> i need to paint with the swing and awt tool, in theRCP program, it is
> running well. but when i transform it into RAP, i found the "SWT_AWT"
> tool makes no action. it is said that the RAP does not support the AWT
> and SWing so far. can somebody have the method to fixed it. the source
> code is like this:
>
> final Frame converterFrame = AWT_AWT.new_Frame(frameComp);
> view = new BPMNGraphView(g, "label");
> converterFrame.add(view);
Re: awt in the RAP [message #546836 is a reply to message #546770] Wed, 14 July 2010 08:04 Go to previous messageGo to next message
Eclipse UserFriend
HI, Ivan:
can you give some detail information. in fact, i can paint with the swing tools. the key code is:

Frame f = SWT_AWT.new_Frame(convert);
f.add(JPanel);
the JPanel containers tools painted with swing tools.
in the rap, we can still obtain the JPanel, but i do not know how to obtain the Frame because the formula SWT_AWT.new_Frame() have no action in the RAP. so, can somebody make some adivices.
Re: awt in the RAP [message #546843 is a reply to message #546836] Wed, 14 July 2010 08:22 Go to previous messageGo to next message
Eclipse UserFriend
Hi zhuzekun,

here [1] is an article about GraphicsContext. Currently (with RAP 1.3),
we support drawing ONLY in Canvas widget.

[1] http://www.eclipse.org/articles/Article-SWT-graphics/SWT_gra phics.html

Best,
Ivan

On 07/14/2010 3:04 PM, zhuzekun wrote:
> HI, Ivan:
> can you give some detail information. in fact, i can paint with
> the swing tools. the key code is:
> Frame f = SWT_AWT.new_Frame(convert);
> f.add(JPanel);
> the JPanel containers tools painted with swing tools.
> in the rap, we can still obtain the JPanel, but i do not know how to
> obtain the Frame because the formula SWT_AWT.new_Frame() have no
> action in the RAP. so, can somebody make some adivices.
Re: awt in the RAP [message #546898 is a reply to message #546843] Wed, 14 July 2010 10:10 Go to previous message
Eclipse UserFriend
HI Ivan,

thanks a lot for your advice, i will have a try.
Previous Topic:TypeError: undefined is not a function
Next Topic:rap.equinox.registry not needed anymore?
Goto Forum:
  


Current Time: Mon Jul 07 13:03:30 EDT 2025

Powered by FUDForum. Page generated in 0.03852 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top