I've a javaapplet that runs in a browser. When pressing f11 in the applet then the applet will be full screen. I put the applet in a frame and set the frame full screen:
(this class extends the Applet class)
But when you press ESC it should be restore the screen from the full screen frame to the browser. I've tried everything to get it work but it won't If you press ESC now it will close full screen but the browser applet has a white screen.
When trying this I would suggest you name the variable something other than contentPane so you don't inadvertently hide any similarly named variable in a superclass. I haven't checked whether that might happen, but its better to be safe.
There are no new questions, but there may be new answers.