Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: Is there something better than ComponentListener on Resized Date: Mon, 30 Sep 2013 11:29:16 -0400 Organization: A noiseless patient Spider Lines: 20 Message-ID: References: <419a414e-356f-4d1c-ab98-cc6613081bcd@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 30 Sep 2013 15:29:17 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="0d73d8cc209bff1c6395088b400d0605"; logging-data="19554"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vzH6opoESd3aanCktZn7J" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.0 In-Reply-To: Cancel-Lock: sha1:GKocF4JevmqnYEv8/HeFE3uMl80= Xref: csiph.com comp.lang.java.programmer:25395 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, 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? -- Eric Sosman esosman@comcast-dot-net.invalid