• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Change color of JButtons in Java 5.0

 
Chandra Sekar
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Chandra Sekar
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

Is this impossible? If so, is there a work-around??
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Chandra Sekar
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Jeff. Sorry for the delayed reply. I was a bit busy with exams.

By the way could you please explain it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic