[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] FYI: fix opaque properties for buttons
From: |
Roman Kennke |
Subject: |
Re: [cp-patches] FYI: fix opaque properties for buttons |
Date: |
Tue, 05 Jul 2005 20:10:11 +0200 |
Am Dienstag, den 05.07.2005, 10:23 -0600 schrieb Tom Tromey:
> >>>>> "Roman" == Roman Kennke <address@hidden> writes:
>
> Roman> I have an application that uses a
> Roman> ToggleButton derived from JToggleButton but does not call super() in
> Roman> its constructors.
>
> Just FYI ... you can't avoid calling super() in a constructor. If you
> don't call it explicitly, the compiler will add it for you. (If you
> call this(), some other constructor will eventually call super()).
Yeah, I noticed that too. The bug that I've seen was actually triggered
by a different problem, the method setContentAreaFilled sets the
property setOpaque() in the JDK, and this method was called in the
JToggleButton derived classes constructor. I will fix this ASAP.
/Roman