Re: javafx frame on SWT composite + eclipse!!
- From: sukanya84@xxxxxxxxx
- Date: Tue, 4 Mar 2008 03:22:42 -0800 (PST)
On Jan 24, 5:16 pm, sukany...@xxxxxxxxx wrote:
hi,
I have developed a small eclipse application. I want to integrate
javafx with it.
I used the eclipse view's "composite" as the frame for the javafx
application i developed, say a frame has a canvas which inturn has a
rectangle.
Integration using the following code which i found in the net,
var frame = SWT_AWT.new_Frame(composite);
where the composite is the eclipse view's composite. And all fx
components on fx's rootpane component and added it to the frame using,
frame.add(rootpane.getComponent());
This worked out excepting for Popupmenus.When i click for popupmenus,
it shows and disappears. Other mouse click and drag options are
working fine.
But if the frame is changed to javafx frame , all popup menus work
fine. But i need it to be embedded within the view which wants an
SWT_AWT base frame.
Can anybody suggest me something on this??
Sukanya
Use a AWT Panel in between the SWT_AWT frame and FX's frame .This will
solve the problem.
There was some site stating to use the Panel.
var frame:<<java.awt.Frame>> =
SWT_AWT.new_Frame(compositeobj:Composite);
var panel:<<java.awt.Panel>> = new Panel();
var rootpane = new RootPane();
panel.add(rootpane.getComponent());
frame.add(panel);
where rootpane is the FX container.Do try.
.
- Prev by Date: Re: ArgoUML
- Next by Date: Re: javafx frame on SWT composite + eclipse!!
- Previous by thread: Re: ArgoUML
- Next by thread: Re: javafx frame on SWT composite + eclipse!!
- Index(es):
Relevant Pages
|
|