posted 19 years ago
Usually a JButton should show up at the correct size to show all the image when you instantiate it with the ImageIcon. If you change the icon later you may have to call 'revalidate' on the button or its parent container. If the button is in a Container whose layout manager respects the preferred size of its components, eg, FlowLayout, GridBagLayout, this should work
You can use 'setBounds' if you need to get heavy-handed.
[ August 08, 2005: Message edited by: Craig Wood ]