🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1151

Re: How to prevent MDI windows from being moved by user

#1151
From: John McGrath [TeamB]
Date: Fri, 19 Mar 2004 04:37
28 lines
2010 bytes
On 3/18/2004 at 4:13:39 PM, John T. Dow wrote:

> 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?

It seems strange to me that you are using a JInternalFrame and then you
want to disable virtually all of the functionality that a
JInternalFrame provides.  So why use a JInternalFrame?

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <405a7912@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <405A1103.5040103@johntdow.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,7c722403acaaadbc
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2004-03-18 20:40:15 PST
From: "John McGrath  [TeamB]" <ng-b@JPMcGrath.net>
Subject: Re: How to prevent MDI windows from being moved by user
Newsgroups: borland.public.jbuilder.java.swing
References: <405A1103.5040103@johntdow.com>
User-Agent: XanaNews/1.16.1.11
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 151.197.214.141
Message-ID: <405a7912@newsgroups.borland.com>
Date: 18 Mar 2004 20:37:38 -0800
X-Trace: newsgroups.borland.com 1079671058 151.197.214.141 (18 Mar 2004 20:37:38 -0800)
Lines: 28
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail