Actions and setpreferredlocation do not work inside custom widget

public class MyNode extends IconNodeWidget{
//declare private members

public MyNode (Scene scene){
IconWidget node = new IconNodeWidget(scene)
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