The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Re: lagging animation

I removed the call of mainclass() from screen cause it was useless, I have no clue of why I created it , but I don't get it, if I need a method from mainclass how can I not create a new object of it?

You need more than a "method from mainclass". When you call a method of an object you usually do this to alter that object's behavior or state or to query its state, and what matters most and in fact what matters completely is the state and the behavior of the mainclass object that is currently being displayed, not some random mainclass instance that you create for the sole purpose of calling a method.

Re: lagging animation

Originally Posted by chri

I didn't make it cause as far as I know posting a link to another website (rival, i think) on a forum is considered as spam...

You think wrong. No websites are "rivals" and any programming forum staffed by volunteers would greatly appreciate seeing these links. We value our free time and appreciate posters who respect this fact.