Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13800
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | markspace <-@.> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: swing component? |
| Date | Sun, 22 Apr 2012 10:10:34 -0700 |
| Organization | A noiseless patient Spider |
| Lines | 17 |
| Message-ID | <jn1e2d$7mn$1@dont-email.me> (permalink) |
| References | <24010092.561.1335104359317.JavaMail.geo-discussion-forums@pbckz3> <jn175o$9u8$1@news.albasani.net> <jn17g2$agj$1@news.albasani.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Sun, 22 Apr 2012 17:10:37 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="QNqT5u6Ryx/DB+LpnoCWdQ"; logging-data="7895"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+izVofDHcVh0skPWYlgxPaYq7/PWAEvDA=" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 |
| In-Reply-To | <jn17g2$agj$1@news.albasani.net> |
| Cancel-Lock | sha1:Vg+e/qRpBN224P9gBdug5LMHBAU= |
| Xref | csiph.com comp.lang.java.programmer:13800 |
Show key headers only | View raw
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.
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