This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Change color of JButtons in Java 5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Change color of JButtons in Java 5.0" Watch "Change color of JButtons in Java 5.0" New topic
Author

Change color of JButtons in Java 5.0

Chandra Sekar
Ranch Hand

Joined: Apr 12, 2006
Posts: 94
Hi,

I like the 3D look of JButtons in Java 5. However when change the foreground color using setForeground(), the 3D look of the Button is lost.

I'd like to have a Orange shade for my buttons instead of the default blue shade. How can I change it without losing the 3D look of the button.


Chandru
Chandra Sekar
Ranch Hand

Joined: Apr 12, 2006
Posts: 94
Hi,

How come, ranchers are unable to solve a problem??

Is this impossible? If so, is there a work-around??
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780


There is no emoticon for what I am feeling!
Chandra Sekar
Ranch Hand

Joined: Apr 12, 2006
Posts: 94
Thanx Jeff. Sorry for the delayed reply. I was a bit busy with exams.

By the way could you please explain it?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Change color of JButtons in Java 5.0
 
Similar Threads
Creating a NxN grid.
JButton is not displaying the background color
JButtons in f. Windows XP Style
Buttons in a java 3d canvas!
Disabling the JTable