The only way I could get the image to not show up was to either load it after the AbstractAction had been instantiated, say, in the class constructor, or give a bad path to the image file. One problem with the ImageIcon loading method is that we don't get any feedback for load failures. Here's a suggestion that may help avoid both problems, ie, unannounced load failure and timing discrepencies in instantiation of the ImageIcon and the AbstractAction that will use it.
Mousa A. Rafi
Joined: Jan 30, 2005
Thanks Craig Wood. That piece of program told be that I was doing something wrong and then found how stupid I've been not to check if the class files were created in the same directory where the java and image files are. I was using JCreator and for some reason it created the class files in a different place. So, when tried to execute (also with JCreator) they didn't find the images.