I have a full screen graphics snooker game and i allow the user to control the cue with the arrow keys, that is combined with all the snooker graphics, i then have a jpanel over layed ontop of those graphics which include translucent buttons and a Jslider for power, i have setRequestFocus() on the graphics, however when i press on the JSlider, i cannot control the cue with the arrow keys, as the arrow keys are then controlling the slider moving the power up and down, this does not happen when i press buttons as i can still move the key, does anyone know how to fix this?
add a mouse listener which in it’s released method sets the focus back to the buttons or wherever it’s needed.