classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] FYI: fix opaque properties for buttons


From: Tom Tromey
Subject: Re: [cp-patches] FYI: fix opaque properties for buttons
Date: 05 Jul 2005 10:23:19 -0600
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "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()).

Roman> -    b.setOpaque(true);
Roman> +    //b.setOpaque(true);

Instead of commenting out code, how about deleting it and replacing it
with a comment explaining why we aren't making this call.

Tom




reply via email to

[Prev in Thread] Current Thread [Next in Thread]