Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13848
| From | Peter <mcheung63@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: swing component? |
| Date | 2012-04-24 06:44 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <4b99164c-346d-4e76-a086-64fb69a3bde1@to5g2000pbc.googlegroups.com> (permalink) |
| References | <24010092.561.1335104359317.JavaMail.geo-discussion-forums@pbckz3> <jn175o$9u8$1@news.albasani.net> <jn17g2$agj$1@news.albasani.net> <jn1e2d$7mn$1@dont-email.me> |
On Apr 23, 1:10 am, markspace <-@.> wrote:
> On 4/22/2012 8:18 AM, Jan Burse wrote:
>
> >> myTable.putClientProperty("com.mycompany.mypackage.mykey", "value");
>
> > "The clientProperty dictionary is not intended to support large scale
> > extensions to JComponent nor should be it considered an alternative to
> > subclassing when designing a new component."
>
> Thanks to you and Quoll for pointing that out, I wasn't aware of that
> method. However, sub-classing is the last thing I'd want to do for the
> Swing API. The docs do say "large scale extensions," so as long as the
> OP only wants to store a few properties, it should be fine.
>
> OTOH, I've never needed to use this facility, so I really do wonder what
> Peter means to do. There's probably better ways of accomplishing his goal.
Thank you all gentlemen :-)
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
swing component? Peter Cheung <cmk128@gmail.com> - 2012-04-22 07:19 -0700
Re: swing component? markspace <-@.> - 2012-04-22 07:47 -0700
Re: swing component? "Qu0ll" <Qu0llSixFour@gmail.com> - 2012-04-23 01:05 +1000
Re: swing component? Jan Burse <janburse@fastmail.fm> - 2012-04-22 17:12 +0200
Re: swing component? Jan Burse <janburse@fastmail.fm> - 2012-04-22 17:18 +0200
Re: swing component? markspace <-@.> - 2012-04-22 10:10 -0700
Re: swing component? Peter <mcheung63@gmail.com> - 2012-04-24 06:44 -0700
Re: swing component? Roedy Green <see_website@mindprod.com.invalid> - 2012-04-27 05:06 -0700
Re: swing component? Roedy Green <see_website@mindprod.com.invalid> - 2012-04-24 08:52 -0700
csiph-web