In article
<541732aa-8ed2-46fc-9b8a-826bcd956742@a23g2000hsc.googlegroups.com>,
> Hi,
>
[quoted text clipped - 18 lines]
>
> Karl
If you work hard enough, practically anything *might* be possible to put
on a JButton. But the real question is why you might want to try such a
thing.
A JButton represents a pushbutton, where you click it in order to invoke
some action. If your goal is to display various images and text, it
might be better to use multiple components for that purpose. If merely
for display, you could use JLabel. If the idea is that interaction with
a different part of the "button" invokes different actions, then
multiple buttons (and even JLabels or other things) might be a more
appropriate solution.

Signature
Steve W. Jackson
Montgomery, Alabama
Daniel Pitts - 19 May 2008 22:49 GMT
> In article
> <541732aa-8ed2-46fc-9b8a-826bcd956742@a23g2000hsc.googlegroups.com>,
[quoted text clipped - 33 lines]
> multiple buttons (and even JLabels or other things) might be a more
> appropriate solution.
More specifically, since JComponent is a container, all JComponent
descendants are also containers. You can put a JPanel with all those
things inside it into a JButton.
Steve is right though, you should ask yourself not "is it possible", but
"is it sensible."
Good luck.

Signature
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>