X-Received: by 10.236.97.7 with SMTP id s7mr1418458yhf.56.1380631192936; Tue, 01 Oct 2013 05:39:52 -0700 (PDT) X-Received: by 10.50.111.200 with SMTP id ik8mr645904igb.7.1380631192687; Tue, 01 Oct 2013 05:39:52 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!q9no709687qas.0!news-out.google.com!9ni1064qaf.0!nntp.google.com!a6no427844qak.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Tue, 1 Oct 2013 05:39:52 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=138.162.0.45; posting-account=r24XpwkAAABfAJg5TJRsTScS4AL5MjOT NNTP-Posting-Host: 138.162.0.45 References: <419a414e-356f-4d1c-ab98-cc6613081bcd@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Is there something better than ComponentListener on Resized From: clusardi2k@aol.com Injection-Date: Tue, 01 Oct 2013 12:39:52 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.lang.java.programmer:25413 > On Monday, September 30, 2013 11:29:16 AM UTC-4, Eric Sosman wrote: > 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 want to prevent the user from horizontally resizing the window beyond a certain width because (if I didn't) anything to the right of my two tables would be a a solid gray color of nothing. So, without the functionality that I want, if the user resizes the window it will look somthing like this exaggerated example: [][]|||||| Where I represent a table with [] and gray solid areas are represented by |. The code that I've, unsuccessfully, tried to use is similar to the code here: http://docs.oracle.com/javase/tutorial/uiswing/layout/gridbag.html