I'm making this program that a tank bean is not allowed to move
beyond the boundaries of the frame wherein it moves. No matter how
much the tank moves, it will always be visible. How would i be able
to do that? I'm trying all the methods that i can think but it still
not working. anybody who can help?