Article View: borland.public.jbuilder.java.swing
Article #8430Re: minimize and maximize...
From: John P. McGrath
Date: Thu, 17 Aug 2000 00:00
Date: Thu, 17 Aug 2000 00:00
26 lines
1540 bytes
1540 bytes
On Thu, 17 Aug 2000 08:33:34 -0400, J. Joseph Yusko wrote: > can anyone help me out with how to manipulate the minimize > and maximize and the close button on the top right corner. > How can i make sure that when the application starts it is > automatically maximized and unable to minimize the application > as well as disabling the close button? The close button cannot actually be disabled, but pressing it just sends an event to your program, and you can handle that event in any way you would like, including ignoring it. You cannot do much to control minimizing and maximizing of a frame in a Java application. In the next release of Java, you should be able to maximize a frame programatically, but that is about it. If you really need to prevent the user from performing doing this sort of thing, then you should use a Window instead of a Frame. A Window has no title bar, minimize, maximize, close, or system buttons, so you do not have to worry about them. If you want a title bar, your code can draw one. -- Regards, John McGrath
Technical Details
Message-ID:
<MPG.14066c992d5c6d7c989adf@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8ngllh$god7@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,d0abdff4b2ea4ad2 X-Google-Attributes: gid111d45,public From: John P. McGrath <JPMcGrath@fast.net> Subject: Re: minimize and maximize... Date: 2000/08/17 Message-ID: <MPG.14066c992d5c6d7c989adf@forums.borland.com> X-Deja-AN: 659584776 References: <8ngllh$god7@bornews.borland.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing