Or getListeners(JButton.class) would presumably work.
Regards
Dave Wathen
Goldman Sachs Asset Management
3rd Floor, Procession House
55 Ludgate Hill
London EC4M 7JN
+44 (0)20-7774-2998
It is not necessary to understand things in order to argue about them.
(Caron de Beaumarchais)
-----Original Message-----
From: John Zukowski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 6:31 PM
To: Jeroen Zwartepoorte; Perico
Cc: [EMAIL PROTECTED]
Subject: Re: How get a Button from its ButtonModel.
Try the setModel() method.
J
At 07:04 PM 3/7/2001 +0100, Jeroen Zwartepoorte wrote:
>Nope, by design, the ButtonModel (M in MVC) and JButton (C in MVC) are
>separated. JButton does know which ButtonModel to use, but ButtonModel
>doesn't know anything about it's Controller & View.
>
>Jeroen
>
>On 07 Mar 2001 18:22:02 +0100, Perico wrote:
> > Is there some way to get the JButton associated with a
> > certain ButtonModel?.
> >
> > Thanks a lot.
John Zukowski, Strategic Java Consulting
JZ Ventures, Inc. - http://www.zukowski.net/~jaz
http://www.jGuru.com -- Your view of the Java Universe
The limits of my language are the limits of my world. - Wittgenstein
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing