Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » awt in the RAP
awt in the RAP [message #546733] Wed, 14 July 2010 01:30 Go to next message
zhuzekun  is currently offline zhuzekun Friend
Messages: 6
Registered: July 2010
Junior Member
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 07:27 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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 12:04 Go to previous messageGo to next message
zhuzekun  is currently offline zhuzekun Friend
Messages: 6
Registered: July 2010
Junior Member
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 12:22 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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 14:10 Go to previous message
zhuzekun  is currently offline zhuzekun Friend
Messages: 6
Registered: July 2010
Junior Member
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 Dec 06 20:55:46 GMT 2021

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

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

Back to the top