I have an image and I want that when I press the left arrow, image turns to the left. In methods that are already created (up, down), you don't have to hold the button to turn around or for...
Type: Posts; User: DPaul1994
I have an image and I want that when I press the left arrow, image turns to the left. In methods that are already created (up, down), you don't have to hold the button to turn around or for...
I didn't succeed...
Ok I'll try to do that..Thanks :) Please do not close this topic cause maybe I'll be back.
It also doesn't work ..
--- Update ---
But frame is set visible on true
I don't think that I see what you mean..You mean like this?
JFrame frame = new JFrame("Proiect Diacu Paul");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
...
Aaaa no, this is the main code.
package joc;
import javax.swing.JFrame;
/**
*
* @author paul
*/
public class Joc {
I have to add @Override but is not working. I will try with Bindings then..
It is working without adding @Override but the rect is not showing up..
Hi. I have made a code that should allowed me to move an object in a frame, using the arrow keys. But I don't know why, is not working. So I hope that you know what I did wrong.
package joc;...
Hello all. My name is Paul and I am 19 years old. I am freshman in computer science and what I'm passionate about programming and technology. I joined to this forum hoping that I will learn more...