I want to display variations of the same image in the same JFrame, for example display an image in JFrame, then replace it with gray scale of the same image.
Share
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.
You will have to repaint the
JFramewhenever you update the image.Here is what a simple google on the topic brings up: (I use those tutorials for all my Java coding)
Java Tutorial: Drawing an Image