wood burning stoves 2.0*
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 Java 8 in Action this week in the Java 8 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:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do gradient as background of button?
 
Similar Threads
DIV tag help color
custom repaint on JButton on mouserollover
Gradient Background for JTextPane
Problem painting component
jButton fill colour