import java.awt.*;
import javax.swing.JFrame;
public class screenmanager {
public static void main(String args[]) {}
private GraphicsDevice device;
public screenmanager() {
[b]GraphicsEnviorment[/b] enviorment =
[b]graphicsEnviorment[/b].getLocalGraphicsEnviorment();
device = enviorment.getDefaultScreenDevice();
}
public void setFullScreen(DisplayMode displaymode, JFrame window ){
window.setUndecorated (true);
window.setResizable(false);
device .setFullScreenWindow(window);
if (displaymode != null &&
device.isDisplayChangeSupported()){
try{
device.setDisplayMode([b]displayMode[/b]);
}
catch ([b]illegalArgumentException[/b] ex) {
}
}
}
public Window getFullScreenWindow() {
return device.getFullScreenWindow();
}
public void restoreScreen() {
Window window = device.getFullScreenWindow();
if (window != null) {
window.dispose();
}
device.setFullScreenWindow(null);
}
}
bold areas giving me a " insert-bold-text-here cannot (be) resolve(d) to …" 1 “a type” 2 cannot be resolved 3 “to a variable” 4 “a type” error
please explain how to fix the error and what is causing it