I am using a negative number to have fillRect() go the opposite way. It works well on my computer, but my friends cannot see it working properly. What do I do?
page.fillRect (12, 12, -5, 10);
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.
My guess is that you and your freind are using 2 different versions of Java. your supports fillrect with a negative value and your freind’s doesn’t. (or even sdk vs jre).
what that shows is that you should write this a different way to have your applet run on all versions.
why not simply move your x of -5 ?
if you want to do it in a more neat way