This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP 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: 58338
178
  • 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: 2885
16
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!