hi i am a new one to this community i have a problem in my code ,in that when i try to implement keylistener it works only for text not for image while using drawImage the image painted but not moved and when iam trying it with draw string keyListener was working but the image was not painted

Please provide your code so we can see what you did so far

Please provide your code so we can see what you did so far

ok that problem is cleared now but i have another now i.e. i am using a username n password fields to my game code but after the correct input they should be vanished n make the root for gamer how that is possible show me the way plz....

There are numerous way how to do it like pass control from frame to frame, swap login jpanel with game jpanel

There are numerous way how to do it like pass control from frame to frame, swap login jpanel with game jpanel

ok thanks for your suggestion,i will tell u later how it's working