[gui][PATCH] JTabbedPane fixes.

Michael Koch konqueror@gmx.de
Tue Jun 15 22:31:00 GMT 2004


-----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-----



More information about the Java-patches mailing list