Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / March 2008

Tip: Looking for answers? Try searching our database.

javafx-reg popupmenus in eclipse(SWT)

Thread view: 
sukanya84@gmail.com - 13 Mar 2008 13:00 GMT
can anyone tel me why popupmenus activated on a canvas mouseclick
event in javafx never opens after clicking once??? where
popupmenu.owner is the canvas itself. Only after refreshing the
view(eclipse), it does come again..
Please help.
MatchStick - 13 Mar 2008 17:18 GMT
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.

Signature

Live and Let Live



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.