Re: add JPanel and JLabel on JButton

From: Harald Hein (speechless_at_gmx.de)
Date: 12/13/03


Date: 13 Dec 2003 15:30:24 GMT


"Robert Ludewig" wrote:

> I need to to rather complex layouting on a JButton. I didn`t find
> a way to do that with html-formatting.
> How could I make a Jbutton capable of taking JPanels and JLabels ?
> I porbally have to subclass JButton ... (?) But how do I add this
> kind of functionality? What methods do I need to override and what
> should I put there ?

The whole thing sounds like a rather dump idea. You want to place
components on a JButton? Why? Are you going for the prize of the most
messed up GUI?