logo       

Re: Array of Widget actions: msg#00040

java.netbeans.modules.graph.user

Subject: Re: Array of Widget actions

I don't know if it was an intention or not but should it be:

widget:getActions.addAction(action)

or

widget.getActions.addAction(action)

both versions may be compilable, depending on the context.

-Martin

Chris Palmer wrote:

Friends!


I was wondering if any has encountered the following problem. When I have a bunch of actions that I would like to add to a Widget. I have them in an array.

When I add actions in the following manner:

widget.getActions().addAction(action1);
widget.getActions().addAction(action2);
widget.getActions().addAction(action3);

Everything works.....but if they are in an array.

for ( WidgetAction action : myListofActions ) {
widget:getActions.addAction(action)
}

I get exceptions on mouse over of the Widget. Specifically the "MoveAction"

I am going to try a stand alone test....

Chris

---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe-Hi7mZnf3vbIkiw2pgZvNdR2eb7JE58TQ@xxxxxxxxxxxxxxxx
For additional commands, e-mail:
users-help-Hi7mZnf3vbIkiw2pgZvNdR2eb7JE58TQ@xxxxxxxxxxxxxxxx


--
_______________________________________________________
Martin Ryzl <martin.ryzl-xsfywfwIY+M@xxxxxxxxxxxxxxxx>
NetBeans Mobility
Sun Microsystems, Inc., Prague (GMT+1)
Phone: +420 233 009 130 (x49130), Fax: +420 233 009 299


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise