Remove Minimize

Remove Minimize

Post by D Lucoc » Wed, 18 Feb 2004 20:36:14


I have an application which works fine, so I do not want to make too many
changes, but I do need to remove or disable the minimise button.

Has anyone got any ideas how this can be achieved?

I have already tried:

this.setUndecorated(true); // Gives a blank frame, so removing the resize,
and escape keys

but this will then not paint my buttons, etc on to the screen.

I have also set:

this.setResizable(false); // Stops frame from being resized

but this dose not do anything to the minimize button.

I have read many post on the Sun Java Forum, but all to no avail.

any help would be most gratefully appreciated.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ( http://www.yqcomputer.com/ ).
Version: 6.0.580 / Virus Database: 367 - Release Date: 06/02/2004
 
 
 

Remove Minimize

Post by Ryan Stewa » Wed, 18 Feb 2004 21:52:41


You're the second person to claim that an undecorated frame doesn't paint
buttons and such. I've never seen this behavior. How are you causing it? As
to the minimize part, the only thing I've seen suggested is that you have to
use native code. If you find out somthing else about it, certainly post the
answer here.