Hi friends, I wrote a javaapplet to trap user keys, and found that the PrintScreen key was not giving the KeyPresed event.(though it gave the KeyReleased event!). Has someone found a solution to this problem !? Regards, rohit
That is normal. I have noticed the same thing with the MouseEvent. If the operation triggered by the event is somthing that takes a while like executing a query and populating a JTable with the result set, often nothing happens on the first click. The best thing to do is bullshit the users. Tell them to double click or hit the key once again to confirm. Cheers Sahir
....
Rohit Singh
Greenhorn
Joined: Dec 22, 2000
Posts: 4
posted
0
Thanks Sahir for your reply. However, what is troubling me is the fact that this behaviour is not consistent.. IT IS SPECIFIC to the PrintScreen key. Other KeyEvents are being generated properly, except for the PrintScreen KeyPressed Event. I'm just getting the KeyReleased Event for this particular Key, whereas I get both events for all the other keys[eg, a-z,A-Z,0-9,etc]. Please let me know your views. Regards, rohit
Sahir Shah
Ranch Hand
Joined: Nov 05, 2000
Posts: 158
posted
0
OIC. I thought you just wanted to do a screen print. That key does not generate a keydown event. Its got nothing to do with java. Its a platform issue. Cheers Sahir
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Key Listener not working for PrintScreen Key ?