Ok, I don't know where the problem is; I'm trying to add an picture(gif picture) to a button.
The gif file is in the src folder (where all my .java classes are located); I even created an "images" folder and copied the gif file there (then I specified the location as "images/car.gif"), but the image won't show..the text shows in the button, but not the picture.
Here's a snippet of my code.
[code]ImageIcon icon = new ImageIcon( "car.gif" );
frameButton = new JButton( BUTTONS[ i ], icon );
frameButton.setVerticalTextPosition( AbstractButton.BOTTOM );
frameButton.setHorizontalTextPosition( AbstractButton.CENTER );[/code]
I've looked at many samples on the web, but I don't know what I'm missing that the icon won't show.