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:David Kaspar (Davi@Sun.COM)
Date:May 23, 2007 7:18:43 pm
List:org.netbeans.graph.users

Hi Chris,

This is very weird since for the library there is no difference in the code parts. It should be working correctly. One think I would check is whether the "myListofActions" does not contain "null" value.

Anyway could you send me the stack trace of the exception?

Thanks, David

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