Results 1 to 1 of 1
Thread: Actions and setpreferredlocation
- 12-23-2011, 03:20 AM #1
Member
- Join Date
- Dec 2011
- Posts
- 1
- Rep Power
- 0
Actions and setpreferredlocation
Actions and setpreferredlocation do not work inside custom widget
public class MyNode extends IconNodeWidget{
//declare private members
public MyNode (Scene scene){
//ctor
super(scene)
IconWidget node = new IconNodeWidget(scene)
node.setLabel("Test");
node.setPreferredLocation(new Point(0,70));
getActions().addAction(scene.createWidgetHoverActi on());
addchild (node);
...
}
}
The Hover action is not being created when the mouse cursor hovers over the "Test" label and also it seems as if the setPreferredLocation has no effect meaning I cannot move the object node to a XY screen location. Any suggestions would be helpful
Similar Threads
-
Actions
By What2do in forum New To JavaReplies: 4Last Post: 01-31-2011, 04:45 PM -
JSP standard actions
By subhashis_mohanty in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 11-27-2010, 07:35 AM -
How to Use Actions
By AJArmstron@aol.com in forum New To JavaReplies: 4Last Post: 04-18-2010, 09:03 PM -
Button Actions
By vasavi.singh in forum Advanced JavaReplies: 3Last Post: 04-03-2009, 09:50 PM -
Actions
By alley in forum AWT / SwingReplies: 2Last Post: 01-16-2008, 02:52 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks