Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #17311
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: jLabel setVisible(true) Doesn't Work |
| Date | 2012-08-07 22:09 -0400 |
| Organization | The Wasteland |
| Message-ID | <nospam-9043A1.22090607082012@news.aioe.org> (permalink) |
| References | <ddf6ecbb-1c20-4163-8504-bb2d8a33e41a@googlegroups.com> |
In article <ddf6ecbb-1c20-4163-8504-bb2d8a33e41a@googlegroups.com>, clusardi2k@aol.com wrote: > (3) Instead of using the show method, doing the following after > setting the label visibility to true did not help. > > my_jLabel.repaint(); > my_jLabel.validate(); Using validate() is appropriate if you add or remove components or change the Container's layout, as shown here [1]. When required, repaint() should be invoked _after_ validate(). CardLayout, shown here [2], is often a better alternative. [1] <http://stackoverflow.com/a/5751044/230513> [2] <http://stackoverflow.com/a/5655843/230513> -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
jLabel setVisible(true) Doesn't Work clusardi2k@aol.com - 2012-08-07 12:15 -0700
Re: jLabel setVisible(true) Doesn't Work markspace <-@.> - 2012-08-07 12:33 -0700
Re: jLabel setVisible(true) Doesn't Work clusardi2k@aol.com - 2012-08-07 15:22 -0700
Re: jLabel setVisible(true) Doesn't Work Jeff Higgins <jeff@invalid.invalid> - 2012-08-07 19:08 -0400
Layout Doesn't Work (was: jLabel setVisible(true) Doesn't Work) Jeff Higgins <jeff@invalid.invalid> - 2012-08-07 22:27 -0400
Re: Layout Doesn't Work (was: jLabel setVisible(true) Doesn't Work) clusardi2k@aol.com - 2012-08-08 05:54 -0700
Re: Layout Doesn't Work Jeff Higgins <jeff@invalid.invalid> - 2012-08-08 11:22 -0400
Re: Layout Doesn't Work Jeff Higgins <jeff@invalid.invalid> - 2012-08-08 14:00 -0400
Re: Layout Doesn't Work markspace <-@.> - 2012-08-08 08:20 -0700
Re: Layout Doesn't Work clusardi2k@aol.com - 2012-08-08 09:24 -0700
Re: Layout Doesn't Work clusardi2k@aol.com - 2012-08-08 10:22 -0700
Re: Layout Doesn't Work markspace <-@.> - 2012-08-08 10:31 -0700
Re: Layout Doesn't Work Jeff Higgins <jeff@invalid.invalid> - 2012-08-08 13:49 -0400
Re: Layout Doesn't Work clusardi2k@aol.com - 2012-08-08 11:15 -0700
Re: Layout Doesn't Work markspace <-@.> - 2012-08-08 11:48 -0700
Re: Layout Doesn't Work Jeff Higgins <jeff@invalid.invalid> - 2012-08-10 10:09 -0400
Re: Layout Doesn't Work Jeff Higgins <jeff@invalid.invalid> - 2012-08-10 10:20 -0400
Re: Layout Doesn't Work Jeff Higgins <jeff@invalid.invalid> - 2012-08-10 13:48 -0400
Re: jLabel setVisible(true) Doesn't Work "John B. Matthews" <nospam@nospam.invalid> - 2012-08-07 22:09 -0400
Re: jLabel setVisible(true) Doesn't Work Roedy Green <see_website@mindprod.com.invalid> - 2012-08-09 05:38 -0700
csiph-web