Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

About Clicking JButton  RSS feed

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When I click a JButton, it will become blue momentarily. Is it possible to change the blue color? If yes, how?
Thanks for replying.
 
Marshal
Posts: 59389
187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you been through the documentation for JButton with ctrl-F-color and ctrl-F-background? That should find methods for changing colours in the background.
 
Rancher
Posts: 2911
18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is Look and Feel controlled.

The Metal LAF has a "Button.select" property you can change, but other LAF's don't.

See UIManager Derfaults for more information.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!