public boolean isFullScreenMode () {
return fullScreenMode;
}
public void changeFullScreenMode() {
GraphicsDevice device = getGraphicsConfiguration().getDevice();
if (!device.isFullScreenSupported()) return;
fullScreenMode = !fullScreenMode;
dispose();
if (fullScreenMode) { // Full screen mode
setUndecorated(true);
device.setFullScreenWindow(this);
jBtnFullNormal.setIcon(new ImageIcon(Commons.NORMAL_SCREEN_ICON));
}
else { // Normal screen mode
setUndecorated(false);
device.setFullScreenWindow(null);
jBtnFullNormal.setIcon(new ImageIcon(Commons.FULL_SCREEN_ICON));
}
setVisible(true);
}