Trying to learn putting icons on buttons. The icon shows when I run it, but the description is not shown. Am I missing something?
amerzil co-ed student<br />"Praise be the Code"
James Carman
Ranch Hand
Joined: Feb 20, 2001
Posts: 580
posted
0
What description? You haven't told the JButton which text you want it to display.
James Carman, President<br />Carman Consulting, Inc.
Karen Baog
Ranch Hand
Joined: Mar 02, 2005
Posts: 120
posted
0
Hi James,
How do I add an icon and a description to the button? I'm playing with the ImageIcon, thinking that the second argument will provide the description. I think I'm wrong here. Now, I don't know what to do.