This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
Bartender

Joined: Jul 19, 2004
Posts: 5226
    
  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
 
Consider Paul's rocket mass heater.
 
subject: how to shade out the close button on a JFrame ?