I need to use gradient color on some of the controls in my application. Following an example, I created my own JGradientPanel that extends JPanel and overrode its paintComponent method. Now, I could use JGradientPanel instead of JPanel and things work okay. I need to extend the logic to JButton, JLabel and many other components. Instead of creating my own custom components for each of them, I am wondering if there is a better way to somehow hook into any component that I need to use a gradient color.
Use an own LookAndFeel. You might look into the code of other L&Fs, as it is not fully documented.