May the force of the Java be in all of us !!!
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
May the force of the Java be in all of us !!!
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
luck, db
There are no new questions, but there may be new answers.
By default, a JPanel isn't focusable, and key events only go to the focused component.
Try calling setFocusable(true) and requestFocusInWIndow().
May the force of the Java be in all of us !!!
would using JWindow or JFrame work better than JPanel
luck, db
There are no new questions, but there may be new answers.
May the force of the Java be in all of us !!!
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
May the force of the Java be in all of us !!!
Shashank Gokhale wrote:... to make the frame window fullscreen that means without decorations, no status bar , nothing. However, when I type fame.setUndecorated(true) in the main method, it doesnt seem to do anything.
Shashank Gokhale wrote:I want to program it so that if I press space bar it shoots, but right now, the bullet just stays where it is unless the object is moving. I know I have something wrong, but what?
luck, db
There are no new questions, but there may be new answers.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |