• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to shade out the close button on a JFrame ?

 
Mxolisi Veco
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10203
129
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mxolisi Veco
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Roel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic