public Gui(JWindow aWindow)
{
this.window = aWindow;
setSize(WIDTH,HEIGHT);
screenSize = Toolkit.getDefaultToolkit().getScreenSize();
setLocation((screenSize.width-WIDTH)*2/3,(screenSize.height-HEIGHT)*2/3);
try
{
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
}
catch(Exception e){}
Container container = getContentPane();
container.setLayout(null);
background = Toolkit.getDefaultToolkit().getImage(getClass().getClassLoader().getResource("Images/background.gif"));
setVisible(true);
}