How big is the newly added component? And where is it? Use getBounds() in the paint() method to find out.
I can only speak for myself, but the Swing engineers know a lot more about threading...
Type: Posts; User: pbrockway2
How big is the newly added component? And where is it? Use getBounds() in the paint() method to find out.
I can only speak for myself, but the Swing engineers know a lot more about threading...
Does the game actually get into state 8? Check by using System.out.println(...) in your paint() method. Do you really mean to create and add more and more of these components every time the panel...
Post code. If "add(new GroundTileATop(spx,spy));" is failing to have the visual effect you expect in your gui, then we really need to see the code of which it is part.