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 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 Android Security Essentials Live Lessons this week in the Android 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
Problem painting component
custom repaint on JButton on mouserollover
DIV tag help color
jButton fill colour
Gradient Background for JTextPane