Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Swing / AWT / SWT
About Clicking JButton
Tony Chow
Greenhorn
Posts: 8
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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: 79178
377
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Rancher
Posts: 3324
32
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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.
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JButtons border to be the same color as the JPanel
Effects of Globalization(Outsourcing)
WA #2 ..... word association
Array Help
what is your blood group?
More...