@GreenHouse, if you are trying to get the image of a user on the site, use the following:
[code]GreenfootImage userImage;
if (UserInfo.isStorageAvailable())
{
UserInfo ui = UserInfo.getUserInfo():
if (ui != null) userImage = ui.getUserImage();
}
if (userImage == null)
{
// create a dummy image here
}[/code]
Using the dragging also puts a definite limit on when a connection is being attempted (what I mean is that there will be a point in time when the attempt is started -- when dragging is detected, and a point in time when the attempt is completed -- when dragEnded). Another plus is you do not have to store the first node clicked on in a field in the world when using the dragging method.
I am not quite sure exactly what I did. I possibly had clicked on the same node twice. I think the main problem stems from the fact that you are using the mouse click function on the nodes to perform two different actions (changing its state and selecting it for possible connection). If you allowed dragging for creating the connections, it could also be used to easily change the node either end of the connector is hooked to (or to remove the connection altogether by not re-connecting to a node); and it would not interfere with the changing of the state of the nodes using mouse clicks.
I believe that ksksks was not logged in and got an ExceptionInitializerError. Looking at the details, I think it may have to do with UserInfo storage connecting.
@ksksks, I started a discussion called "On 'The Maze Factory' by danpost" to show the Timer class code. It is located at: http://www.greenfoot.org/topics/4431
2013/9/21
Aliens
2013/9/16
Labyrinth DoItYourSelf
2013/9/14
CombinatorialCircuitEditor
2013/9/14
CombinatorialCircuitEditor
2013/9/14
CombinatorialCircuitEditor
2013/9/11
World Wrapping
2013/9/11
Jump!
2013/9/10
The Maze Factory
2013/9/10
Night of the Damned