• Post Reply Bookmark Topic Watch Topic
  • New Topic

About Clicking JButton  RSS feed

 
Tony Chow
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.
 
Campbell Ritchie
Marshal
Posts: 55772
163
  • 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.
 
Rob Camick
Ranch Hand
Posts: 2801
15
  • 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!