permaculture playing cards
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


Win a copy of Building Microservices this week in the Design forum!
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
Sheriff

Joined: Jul 19, 2004
Posts: 7297
    
  30

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
OCAJP 7
Mxolisi Veco
Ranch Hand

Joined: Jan 14, 2010
Posts: 59
Thanks Roel
 
Have you checked out Aspose?
 
subject: how to shade out the close button on a JFrame ?
 
It's not a secret anymore!