aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes how to shade out the close button on a JFrame ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "how to shade out the close button on a JFrame ?" Watch "how to shade out the close button on a JFrame ?" New topic
Author

how to shade out the close button on a JFrame ?

Mxolisi Veco
Ranch Hand

Joined: Jan 14, 2010
Posts: 59
Hi.

I have disabled the close button on a JFrame. I want the colour to be greyed out so that is does not give the user an impression that something happens when they click on it.
How do I do that ?
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5212
    
  12

Hi Mxolisi,

I think that's to the courtesy of the operating system and can't be done from Java. But I'm not a Swing guru, so maybe I'm mistaken and if you really want to be sure, you can ask it on the Swing forum. Here is another thread in that forum with the same question as yours.

Kind regards,
Roel


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Mxolisi Veco
Ranch Hand

Joined: Jan 14, 2010
Posts: 59
Thanks Roel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to shade out the close button on a JFrame ?