Also what I dont get is that you say i should copy the tutorial and experiment with it and i would be a copy+paste programmer if I did the same with a solution from google. Im a beginner ok? Can you...
Type: Posts; User: nivangerow
Also what I dont get is that you say i should copy the tutorial and experiment with it and i would be a copy+paste programmer if I did the same with a solution from google. Im a beginner ok? Can you...
If I do things over and over again i learn from them. Sorry i totally forgot to give you my code, anyways thanks for the help.
I dont have the time to make a SSCCE and im only copying the solutions because I am relatively new to swing. And I learn from using those solutions on a daily basis. Thats how I learn, everyone...
Im not a copy-paste programmer, I spent half a year learning the basics of java, and now I have started to learn swing and I am making my own game.
No im not trolling. I just want to make my key listener Focus. And the key listener sits in my JPanel.
Right. This is pretty much my problem: java - Obtaining focus on a JPanel - Stack Overflow
and I will try some of the solutions that are in the comments on that page. If that doesnt work I will come...
I cant find it in the tutorial though. Instead of giving me links, you could just tell me what to do if you know what I need.
I looked at the links and tutorials. Its not what im looking for. I need the key listener to focus on the JPanel automatically, at the moment I have to press tab for it to focus. Can I give you a...
What is a SSCCE? I followed the highlighted link but i still dont get it...
Right, lets try again. I am trying to make the key listener in my main JPanel to focus the keyboard as soon as the program is run.
Sorry, I will come back tomorrow, were eating dinner..
I read your links and copegs suggestion didnt work.
Because at the moment I have to press the tab button to focus on my JPanel.
Focus so i can use KeyAdapter
I need to autofocus a JPanel in my main frame. How do I accomplish this?