This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
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 Customer Requirements for Developers this week in the Jobs Discussion 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: 7071
    
  28

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to shade out the close button on a JFrame ?
 
jQuery in Action, 3rd edition