MapEditor not working

Here is the link to the MapEdit.jar file.

http://www.java-gaming.org/user-generated-content/members/125405/mapedit.jar

I’ve included the source in the archive. I’m successfully able to load new Images and make them buttons. I can select them. But the trouble I’m having is in the editor part where even If I click the space, the objects aren’t getting added. Help required.

Thanks.

Found the solution. I’ve forgot to register the mouse listener. Now it works all right.