awt in the RAP [message #546733] |
Tue, 13 July 2010 21:30  |
Eclipse User |
|
|
|
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 #546843 is a reply to message #546836] |
Wed, 14 July 2010 08:22   |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03852 seconds