aspose file tools*
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
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?
 
 
subject: Change color of JButtons in Java 5.0