Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • 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
Sheriff
Posts: 53773
127
  • 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: 2754
12
  • 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!