Making a full screen JFrame
Is it possible to make a JFrame full screen after it's been initialized, and then bring it back to windowed mode? I have this method to create a full screen JFrame, but it only works before the frame has been made visible:
publicvoid goFullScreen(){
GraphicsEnvironment env = GraphicsEnvironment.
getLocalGraphicsEnvironment();
device = env.getDefaultScreenDevice();
setUndecorated(true);
setResizable(false);
device.setFullScreenWindow(this);
}

