Originally posted by Harish Kashyap:
It doesn't necessarily mean that your program has some error. As I do not see any problem with the function you have written.
Working with swings has always been tricky because they bahave differently on different platforms(OS). They inherit the native windowing capabilities from the underlying operating system.
I would suggest you to add some debug prints and firstly figure out whether this function is at all getting invoked in full screen mode?
Secondly, if your window does not gain focus, then the key press events may not get captured by your program.
Hi Harish,
I use eclipse for building my application and i inserted breakpoints inside that keyPress method and then i tried to debug it.Actually, that function gets called in both the cases(Normal and Fullscreen).But, i cannot see the help. One more thing is that i kept other shortcut keys also (like Shift+F4 which is used to toggle between Normal and Fullscreen) which are working well in Fullscreen mode.Only problem i am getting is inside this F1 key event only.