I’m trying to replicate the lighting effect shown on each of the bars in the image below in Java 2D. I really don’t even know where to start as I have no Java 2D experience.
Can anyone offer me some pointers?

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Those are basic gradients applied to rectangles and other polygons.
You can use
GradientPaintto create a gradient effect.