4 messages in org.netbeans.graph.usersRe: Array of Widget actions
FromSent OnAttachments
Chris PalmerMay 23, 2007 5:22 pm 
David KasparMay 23, 2007 7:18 pm 
Martin RyzlMay 24, 2007 1:03 am 
Chris PalmerMay 24, 2007 5:08 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Array of Widget actionsActions...
From:Chris Palmer (cpal@kcctech.com.au)
Date:May 24, 2007 5:08:14 am
List:org.netbeans.graph.users

Hi Guys!

Thanks, was just a typo.....

I will send the stack trace in a few....

Chris

Martin Ryzl wrote:

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.

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....