Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #38316
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Is there a method to update control size? |
| Date | Thu, 31 May 2018 19:22:43 +0200 |
| Organization | A noiseless patient Spider |
| Lines | 17 |
| Message-ID | <pepb3b$bpb$1@dont-email.me> (permalink) |
| References | <7a7e726d-051d-4f17-93ac-3dabdde80894@googlegroups.com> <pep4b3$qnp$1@dont-email.me> <959c54c7-9fb9-4bba-93c9-6983553999bf@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Thu, 31 May 2018 17:23:55 -0000 (UTC) |
| Injection-Info | h2725194.stratoserver.net; posting-host="ac2fb51c39738a4e35109bf9466fc77b"; logging-data="12075"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/WV0lgebpXcZNT0jMoo2Gk" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
| Cancel-Lock | sha1:zFDDngfqhJ3Da1FQRATvjcC5BV4= |
| In-Reply-To | <959c54c7-9fb9-4bba-93c9-6983553999bf@googlegroups.com> |
| X-Antivirus-Status | Clean |
| Content-Language | en-GB |
| X-Antivirus | AVG (VPS 180531-0, 05/31/2018), Outbound message |
| Xref | csiph.com comp.lang.java.programmer:38316 |
Show key headers only | View raw
On 2018-05-31 18:42, Eric Douglas wrote: > On Thursday, May 31, 2018 at 11:28:43 AM UTC-4, Eric Sosman wrote: >> Right here is where I simply must ask: "Why?" Why not just put >> the scroll pane wherever you were going to put the label? (Or, why >> not put the label-plus-scroll as the content of another label, and >> put that as the content of yet another label, and ...?) >> > Because the JLabel is a custom class which wraps every control type, which gives them all a common border, which turns blue if they have focus. This also makes each control a single control where they may otherwise be multiple controls. ie a US phone number control has an area code input, a prefix input, a suffix input, and text labels to show the ( ) - mask. One border shows around all of them. Putting a single control like this JScrollPane in such a JPanel is to avoid duplicating logic like the border objects and focus listeners. > Because the JLabel is a custom class which wraps every control type > Putting a single control like this JScrollPane in *such a* JPanel Which one is it then? JLabel or JPanel? -- DF.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Is there a method to update control size? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-31 07:34 -0700
Re: Is there a method to update control size? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2018-05-31 17:20 +0200
Re: Is there a method to update control size? Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-05-31 11:28 -0400
Re: Is there a method to update control size? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-31 09:42 -0700
Re: Is there a method to update control size? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2018-05-31 19:22 +0200
Re: Is there a method to update control size? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-31 10:38 -0700
Re: Is there a method to update control size? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2018-05-31 19:45 +0200
Re: Is there a method to update control size? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-31 10:55 -0700
Re: Is there a method to update control size? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2018-05-31 20:05 +0200
Re: Is there a method to update control size? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2018-06-03 15:00 -0500
Re: Is there a method to update control size? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2018-06-04 02:25 +0200
Re: Is there a method to update control size? Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-05-31 15:55 -0400
Re: Is there a method to update control size? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2018-06-03 15:02 -0500
csiph-web