Article View: borland.public.jbuilder.java.swing
Article #11155strange line of code in JComponent
From: Roman Huerlimann
Date: Fri, 02 Jul 1999 00:00
Date: Fri, 02 Jul 1999 00:00
19 lines
1037 bytes
1037 bytes
Hi
I found the following code in java 1.2.2 source code from JComponent
2553: /**
* Resizes this object so that it has width width and height.
*
* @param d - The dimension specifying the new size of the
object.
*/
public void setSize(Dimension d) {
JComponent.this.setSize(d);
2560: }
As far as I understand this it calls itself again. This would be an
endlos loop, which I guess can't be. So what is done here?
Can anybody explain this to me?
Technical Details
Message-ID:
<377CC133.35630EB9@tamedia.ch>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,4f348b9972d5243e,start X-Google-Attributes: gid111d45,public From: Roman Huerlimann <Roman.Huerlimann@tamedia.ch> Subject: strange line of code in JComponent Date: 1999/07/02 Message-ID: <377CC133.35630EB9@tamedia.ch> X-Deja-AN: 496396937 Content-Transfer-Encoding: 7bit Organization: EUnet AG X-Accept-Language: de-CH,en Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing