Hi I want to add gradient color to JButton and JPanel. This is my code can you help me to solve this mater.
posted 6 years ago
what specifically is not working for you? Tell us this and we'll be much better able to help you. My guess is to add a gradient color background, paint it in the JComponent's paintComponent method. For instance: