GUI
Class ScreenResErrorWindow

java.lang.Object
  extended by GUI.ScreenResErrorWindow

public class ScreenResErrorWindow
extends java.lang.Object

Class used in order to inform user that the game can not run in the current screen resolution. This is made possible by using a JOptionPane window. After that the game exits and all resources which are binded by the application are again made free.


Constructor Summary
ScreenResErrorWindow()
          Constructor of the ExitingWindow object.
 
Method Summary
 boolean checkScreenRes()
          Method that checks the current screen resolution user uses in his/her computer.This is made possible by a Toolkit object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenResErrorWindow

public ScreenResErrorWindow()
Constructor of the ExitingWindow object.

Method Detail

checkScreenRes

public boolean checkScreenRes()
Method that checks the current screen resolution user uses in his/her computer.This is made possible by a Toolkit object.

Returns:
true if the current screen resolution is acceptable; false otherwise.