Article View: borland.public.jbuilder.java.swing
Article #1148How to prevent MDI windows from being moved by user
From: John T. Dow
Date: Thu, 18 Mar 2004 21:13
Date: Thu, 18 Mar 2004 21:13
16 lines
1943 bytes
1943 bytes
I've used internal frames to create an mdi application and have everything working as I want it with one exception. I'd like to prevent users from moving windows, as which windows are open at any point in time, and their overlapping placement, is controlled by the business logic. So far I can prevent the user from minimizing, closing, or resizing the windows (panels). I haven't found how to prevent them from being moved. I posted this question in a jbuilder forum and have had two suggestions for workarounds. 1) Monitor mouse events and prevent moving. 2) Allow moving but provide an easy way to restore positions. Any other solutions, such as a setMovable(false) method? Thanks John
Technical Details
Message-ID:
<405A1103.5040103@johntdow.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!newsfeed3.easynews.com!easynews.com!easynews!border1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,7c722403acaaadbc,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2004-03-18 13:22:57 PST Message-ID: <405A1103.5040103@johntdow.com> Date: Thu, 18 Mar 2004 16:13:39 -0500 From: "John T. Dow" <john@johntdow.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: How to prevent MDI windows from being moved by user Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 4.15.246.242 X-Trace: newsgroups.borland.com 1079644426 4.15.246.242 (18 Mar 2004 13:13:46 -0800) Lines: 17 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!newsfeed3.easynews.com!easynews.com!easynews!border1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail