This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [gui][PATCH] JTabbedPane fixes.
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Cc: Kim Ho <kho at redhat dot com>
- Date: Tue, 15 Jun 2004 20:44:37 +0200
- Subject: Re: [gui][PATCH] JTabbedPane fixes.
- References: <1087320408.16511.9.camel@tomaluk.toronto.redhat.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Dienstag, 15. Juni 2004 19:26 schrieb Kim Ho:
> Hi,
>
> This fixes a couple problems with JTabbedPane.
@@ -312,7 +312,9 @@
*/
public void setComponent(Component c)
{
+ JTabbedPane.this.remove(component);
this.component = c;
+ JTabbedPane.this.add(c);
}
One question: Is there any reason why you use
"JTabbedPane.this.remove(component);" instead of
"remove(component);" ?
Michael
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAz0OVWSOgCCdjSDsRApihAKCUPOiAzTmhHvFfpdKqQXQnPwmiqwCdFwNt
n0ymA7GekYAG6COvB17SYog=
=o+VD
-----END PGP SIGNATURE-----