aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How do gradient as background of button? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How do gradient as background of button?" Watch "How do gradient as background of button?" New topic
Author

How do gradient as background of button?

Robert Paris
Ranch Hand

Joined: Jul 28, 2002
Posts: 585
I want to implement my own look and feel and one thing I want is to be able to do a gradient for button backgrounds. How would I do this?
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Here's one way:
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How do gradient as background of button?