i have some problems with Swing and animate a character, I Have a JFrame with key listener and when the user hit down,it calls my JPanel method here
for(int
don't extend JFrame, create JFrame as local variable
don't use KeyListener, use KeyBindings instead
don't paint directly to the JFrame, use drawImage() to the JLabel or JComponent/JPanel
This animate my character but so fast that we can see a thing,how do i can do to view the animation?
another issue with KeyListener, you have to set for delay betweens two KeyEvents