Article View: borland.public.jbuilder.java.api
Article #3081Re: HOW TO DISABLE MAX/MIN/CLOSE System buttons on the right top corner
From: Jeff Bourne
Date: Mon, 27 Apr 1998 00:00
Date: Mon, 27 Apr 1998 00:00
65 lines
2260 bytes
2260 bytes
Wrong. You need to implement WindowListener, which requires the
following
methods. Then just override the methods with what you want to do.
//windowing controls...required for window listener
public void windowClosing(WindowEvent e) {
System.exit(0);
}
public void windowClosed(WindowEvent e) {}
public void windowIconified(WindowEvent e) {}
public void windowOpened(WindowEvent e) {}
public void windowDeiconified(WindowEvent e) {}
public void windowActivated(WindowEvent e) {}
public void windowDeactivated(WindowEvent e) {}
Rich Wilkman wrote:
>
> Ahmet:
>
> You don't. Those come from the peer surfaced by WinTel native code.
>
> -Rich
>
> Ahmet Haliloglu wrote:
> >
> > Hi,
> >
> > Can anyone tell me how can I disable the maximize / minimize / close
> > system buttons
> > on the top right corner of a frame. Is there any property similar to
> > ones in DELPHI.
> >
> > thanks
> >
> > ayh
>
> --
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Rich Wilkman
> Senior Quality Assurance Engineer
> Borland JBuilder Team
>
> If you see something that looks like an opinion up there,
> it's mine and mine alone.
>
> Mail sent to me from the newsgroups won't bounce but will
> be ignored. If I have time, I'll respond, but you have
> a better chance if you confine your posts to the newsgroups
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--
CPT(P) Jeff Bourne W: (409)862-4871
Bryan, TX F: (409)260-0149
PGP Fingerprint:
D47E 4285 2695 EC2D 423B 6F12 E9B4 4BE2 17DF 436F
Technical Details
Message-ID:
<3544779B.B5867352@cs.tamu.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35251C77.DC04AA5D@ug.bcc.bilkent.edu.tr> <352572A0.72840A13@corp.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,8746ecf2a07f6296 X-Google-Attributes: gid1089d0,public From: Jeff Bourne <bournej@cs.tamu.edu> Subject: Re: HOW TO DISABLE MAX/MIN/CLOSE System buttons on the right top corner Date: 1998/04/27 Message-ID: <3544779B.B5867352@cs.tamu.edu> X-Deja-AN: 348064247 Content-Transfer-Encoding: 7bit References: <35251C77.DC04AA5D@ug.bcc.bilkent.edu.tr> <352572A0.72840A13@corp.borland.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.api