Article View: borland.public.jbuilder.java.swing
Article #12180Re: frame window
From: Gavin Cassidy
Date: Wed, 10 Feb 1999 00:00
Date: Wed, 10 Feb 1999 00:00
37 lines
1730 bytes
1730 bytes
To disable the Close button, you have to override the system close handler.
Here's an example:
/**
* Override DecoratedFrame's system close handler
*/
protected void processWindowEvent(WindowEvent e) {
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
this.setVisible (false);
}
}
In my case I've set the frame invisible, but if you want to do something else
put your own commands in instead of this.setVisible (false);
If nothing is put in then the button will just do nothing.
To disable the minimize and maximise, I think you just set the Frame.resizable
option as false.
I hope this helps
Gavin
Aleksandar Stankovic wrote:
> Hi there,
>
> I'm trying to build my firs Java application, and it's going well so far
> except for few things.
> First: I couldn't find a way to disable minimize, maximize or close buttons
> on the main application window. I created the application window with the
> wizard provided with jbuilder 2.
> and second: how do I make actual executable file? I can run my application
> from jbuilder but somehow I don't see how to make a executable.
>
> Thanks a lot in advance,
> alex
Technical Details
Message-ID:
<36C16692.C77CCEB3@apion-tss.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<79o1p8$2in15@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,b32fbadad8bed097 X-Google-Attributes: gid111d45,public From: Gavin Cassidy <g.cassidy@apion-tss.com> Subject: Re: frame window Date: 1999/02/10 Message-ID: <36C16692.C77CCEB3@apion-tss.com> X-Deja-AN: 442772936 Content-Transfer-Encoding: 7bit References: <79o1p8$2in15@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Apion Mime-Version: 1.0 Reply-To: g.cassidy@apion-tss.com Newsgroups: borland.public.jbuilder.java.swing