Re: javafx-reg popupmenus in eclipse(SWT)



Sorry for the incomplete question before!
The question is like this,
I want to incorporate popupmenus into a javafx component called Canvas.
Canvas sits on Frame.
var frame = new Frame();
var canvas = new Canvas();
var popupmenus = new PopupMenu(); //inside many menuitems are placed, say.
popupmenus.owner = canvas;
frame.content = canvas;
Now,
canvas.onMouseClicked = operation(e:MouseEvent)
{
popupmenus.visible = true; //drops down the menus
};

This is perfectly working in the Javafx editor (javafxpad.jnlp). But the same
code when run on Eclipse, misses to open the popupmenus when clicked more
than once on the canvas.
Only when the canvas is refreshed it opens. So, am able to perform only one
operation at a time.Then refresh for the second action to be performed.
Can anyone help on this? Thank you.

--
Live and Let Live

.



Relevant Pages

  • Re: Reading pick from option menu
    ... detailViewFrm, @var, *words) { ... root.title('Ruby/Tk Canvas Demo') ... def canvas.draw ... pts << pts.first ...
    (comp.lang.ruby)
  • Re: Need JavaScript based drawing/signature box
    ... A <canvas> tag creates a matrix of pixels of the given (width, ... var pos = getMousePositionInElement; ... var mousePosition = new Array; ...
    (comp.lang.javascript)
  • Re: about the canvas widget
    ... packed by the canvas create command. ... set height [winfo height $can] ... and the proc resize_frame redeveloped as follows, ...
    (comp.lang.tcl)
  • Re: about the canvas widget
    ... frame controlled by its contents. ... when I resize the window, the canvas will resize automatically and fire ... the same value as the output of canvas dynamically. ... Suppose the frame has one child widget, a button, so the frame just ...
    (comp.lang.tcl)
  • Re: canvas with large window (frame)
    ... Bruce Hartweg wrote: ... >> I add the frame to a canvas as a single window to enable ...
    (comp.lang.tcl)