This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gui][PATCH] JTabbedPane fixes.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]