Click here to Skip to main content
15,929,025 members
Home / Discussions / Java
   

Java

 
Questionhierarchical data in a true tree format Pin
Sambou52363-Jan-09 20:40
Sambou52363-Jan-09 20:40 
QuestionNetwork programming help!!!!!!! Pin
romance12-Jan-09 7:55
romance12-Jan-09 7:55 
Questionhow can I parse a queary into parts to write a search parsing Pin
D V kirankumar31-Dec-08 0:26
D V kirankumar31-Dec-08 0:26 
QuestionHelp in java subclassinng, inheritance Pin
homiee125-Dec-08 0:41
homiee125-Dec-08 0:41 
QuestionRe: Help in java subclassinng, inheritance Pin
code_var26-Dec-08 3:10
code_var26-Dec-08 3:10 
Questionhow to pass initialization parameters in servlets Pin
shofia.m24-Dec-08 4:07
shofia.m24-Dec-08 4:07 
Questionhow to connect servlet with ms sql2000 Pin
shofia.m24-Dec-08 4:03
shofia.m24-Dec-08 4:03 
QuestionKeyListener - keyPressed delay Pin
max2929723-Dec-08 18:33
max2929723-Dec-08 18:33 
Hey guys! Just a quick question...

So I've added a KeyListener to my JPanel for a game I'm making, and everything is working out fine, except for one thing:

When I hold down a key, keyPressed is called once, followed by a delay, followed by several consecutive calls of the keyPressed method. I understand that this has to do with the way key events are processed and that you can adjust this delay within the control panel, but is there any way to remove this delay completely?

I'm thinking what I'm going to end up doing is creating a boolean keyDown variable which is set to true on keyPressed and to false on keyReleased.

Any other ideas? Smile | :)
AnswerRe: KeyListener - keyPressed delay Pin
max2929725-Dec-08 17:33
max2929725-Dec-08 17:33 
Questionjava nlp project Pin
navasan22-Dec-08 21:03
navasan22-Dec-08 21:03 
AnswerRe: java nlp project Pin
toxcct22-Dec-08 21:36
toxcct22-Dec-08 21:36 
AnswerRe: java nlp project Pin
navasan22-Dec-08 22:30
navasan22-Dec-08 22:30 
Questioncohen sutherland implementation Pin
427748021-Dec-08 12:57
427748021-Dec-08 12:57 
Questionhelp me!...ASAP Pin
ericson045019-Dec-08 23:32
ericson045019-Dec-08 23:32 
AnswerRe: help me!...ASAP Pin
toxcct21-Dec-08 21:59
toxcct21-Dec-08 21:59 
GeneralRe: help me!...ASAP [modified] Pin
code_var26-Dec-08 3:55
code_var26-Dec-08 3:55 
GeneralRe: help me!...ASAP Pin
ericson045026-Dec-08 8:01
ericson045026-Dec-08 8:01 
Questionhelp me!...ASAP Pin
ericson045019-Dec-08 23:29
ericson045019-Dec-08 23:29 
AnswerRe: help me!...ASAP Pin
toxcct21-Dec-08 21:57
toxcct21-Dec-08 21:57 
Questionplease solve my problem Pin
im-kyo19-Dec-08 2:59
im-kyo19-Dec-08 2:59 
AnswerRe: please solve my problem Pin
toxcct21-Dec-08 21:57
toxcct21-Dec-08 21:57 
QuestionConnection to mysql database on lan in netbeans ide 6.0 Pin
Vinod Kumar Maurya18-Dec-08 6:37
Vinod Kumar Maurya18-Dec-08 6:37 
Questionproblem in loading a xml file Pin
Areff17-Dec-08 22:14
Areff17-Dec-08 22:14 
AnswerRe: problem in loading a xml file Pin
Naruki23-Dec-08 17:32
Naruki23-Dec-08 17:32 
Questionmouseover menu Pin
m-masood16-Dec-08 4:10
m-masood16-Dec-08 4:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.