🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: frame window

#12200
From: Aleksandar Stankovic
Date: Thu, 11 Feb 1999 00:00
45 lines
1845 bytes
Thanks, that helped a lot!

Gavin Cassidy wrote in message <36C16692.C77CCEB3@apion-tss.com>...
>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: <7a08ua$mtv2@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <79o1p8$2in15@forums.borland.com> <36C16692.C77CCEB3@apion-tss.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: "Aleksandar Stankovic" <stankovi@andrews.edu>
Subject: Re: frame window
Date: 1999/02/11
Message-ID: <7a08ua$mtv2@forums.borland.com>
X-Deja-AN: 443489221
References: <79o1p8$2in15@forums.borland.com> <36C16692.C77CCEB3@apion-tss.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing