Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #25403
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Is there something better than ComponentListener on Resized |
| Date | Mon, 30 Sep 2013 22:32:23 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 71 |
| Message-ID | <l2dc7p$h0i$1@dont-email.me> (permalink) |
| References | <aa287a36-de15-45eb-90a6-bb3f4e0e2853@googlegroups.com> <l1iduk$smc$1@dont-email.me> <419a414e-356f-4d1c-ab98-cc6613081bcd@googlegroups.com> <l1lllj$plo$1@dont-email.me> <db2d0fc9-8ff0-4b7c-b7d8-cf987960c0f2@googlegroups.com> <l2c5cd$j32$2@dont-email.me> <l2cmlo$4ca$1@dont-email.me> <l2cpku$mau$1@dont-email.me> <l2db9n$d53$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Tue, 1 Oct 2013 02:32:26 +0000 (UTC) |
| Injection-Info | mx05.eternal-september.org; posting-host="0d73d8cc209bff1c6395088b400d0605"; logging-data="17426"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18CJ3g6RjgG8ntOrn+qfdRu" |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.0 |
| In-Reply-To | <l2db9n$d53$1@dont-email.me> |
| Cancel-Lock | sha1:hMP4EZ5FjCrhSm6UlqyZfm/LK9w= |
| Xref | csiph.com comp.lang.java.programmer:25403 |
Show key headers only | View raw
On 9/30/2013 10:16 PM, Jeff Higgins wrote:
> On 09/30/2013 05:15 PM, Eric Sosman wrote:
>> On 9/30/2013 4:24 PM, Jeff Higgins wrote:
>>> On 09/30/2013 11:29 AM, Eric Sosman wrote:
>>>> On 9/30/2013 11:08 AM, clus@aol.com wrote:
>>>>> On Saturday, September 21, 2013 10:46:10 PM UTC-4, Jeff Higgins wrote:
>>>>>> On 09/21/2013 02:40 PM, clus@aol.com wrote: LayoutManager
>>>>>
>>>>> How would I do this with GridLayout,
>>>
>>> Shrugs: provide some code and perhaps we'll see.
>>>
>>>>> since I'm using GridLayout. Here
>>>>> are the details.
>>>>>
>>>>> In a frame, I first add a push button at the top. Below the button I
>>>>> add two tables, side by side.
>>>>>
>>>>> The frame already resizes vertically to any length which is good.
>>>>>
>>>>> But, I want the frame to not resize horizontally beyond a certain
>>>>> hardcoded limit. I.E.: I want the frame to resize horizontally, but
>>>>> attempts to resize beyond a certain limit are prevented. So, if a user
>>>>> were to try to resize horizontally beyond the limit then the resulting
>>>>> horizontal width of the frame would be the limit.
>>>>
>>>> Perhaps it's time to ask a question: Why do you think it's a
>>>> good idea to prevent the user from arranging his own screen as
>>>> he pleases? Does your program understand the user's needs and
>>>> desires better than he himself does?
>>>
>>> I've used such a program.
>>
>> Did you enjoy it? ;-)
>>
>> That is: Did you consider it a benefit, a point in the
>> program's favor, when the program's window resisted all your
>> efforts to make it larger? Did this behavior improve your
>> experience of using the program?
>>
> Oh. I was responding to your comment concerning the program(mer)
> who perhaps understands my needs and desires better than I do.
> Many programmers provide sensible default behavior for users,
> like me, who might not be familiar with the program or even
> the subject matter. I don't recall seeing a GUI behavior such as
> clus@aol.com describes, but maybe the subject matter warrants such.
Sorry for the misunderstanding.
It's certainly possible that Clusardi's situation does in fact
make such Thou Shalt Not behavior desirable, perhaps useful or even
essential. That's why I raised the question: Not to deny that there
could be a reason, but to ensure that the reason had actually been
examined and evaluated.
I guess there are three questions, really:
1) Is the size restriction really desirable?
2) If (1), then must it be applied to the entire frame
rather than to a sub-component like an interior JPanel?
3) If (2), then Clusardi's original question: "How?"
Maybe if the reasons for "Yes" answers to (1) and (2) were
made public, somebody might have a better idea how to answer
(3) -- or how to do something different but satisfactory.
--
Eric Sosman
esosman@comcast-dot-net.invalid
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Is there something better than ComponentListener on Resized clusardi2k@aol.com - 2013-09-20 12:43 -0700
Re: Is there something better than ComponentListener on Resized Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-09-20 17:16 -0400
Re: Is there something better than ComponentListener on Resized clusardi2k@aol.com - 2013-09-21 11:40 -0700
Re: Is there something better than ComponentListener on Resized Jeff Higgins <jeff@invalid.invalid> - 2013-09-21 22:46 -0400
Re: Is there something better than ComponentListener on Resized "clus@aol.com" <clusardi2k@aol.com> - 2013-09-30 08:08 -0700
Re: Is there something better than ComponentListener on Resized Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-09-30 11:29 -0400
Re: Is there something better than ComponentListener on Resized Jeff Higgins <jeff@invalid.invalid> - 2013-09-30 16:24 -0400
Re: Is there something better than ComponentListener on Resized Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-09-30 17:15 -0400
Re: Is there something better than ComponentListener on Resized "John B. Matthews" <nospam@nospam.invalid> - 2013-09-30 20:10 -0400
Re: Is there something better than ComponentListener on Resized Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-09-30 20:38 -0400
Re: Is there something better than ComponentListener on Resized Jeff Higgins <jeff@invalid.invalid> - 2013-09-30 22:16 -0400
Re: Is there something better than ComponentListener on Resized Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-09-30 22:32 -0400
Re: Is there something better than ComponentListener on Resized Jeff Higgins <jeff@invalid.invalid> - 2013-10-01 03:28 -0400
Re: Is there something better than ComponentListener on Resized Jeff Higgins <jeff@invalid.invalid> - 2013-10-01 03:41 -0400
Re: Is there something better than ComponentListener on Resized Arne Vajhøj <arne@vajhoej.dk> - 2013-10-01 20:04 -0400
Re: Is there something better than ComponentListener on Resized clusardi2k@aol.com - 2013-10-01 05:39 -0700
Re: Is there something better than ComponentListener on Resized Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-10-01 09:37 -0400
Re: Is there something better than ComponentListener on Resized "John B. Matthews" <nospam@nospam.invalid> - 2013-09-22 19:57 -0400
csiph-web