Windows size

how can i manage to get the windows size the user has choosen at start up if theres is no properties file but also the properties dialog?



i tried


PropertiesIO prop = new PropertiesIO("properties.cfg");
      int height = prop.getHeight();
      int width = prop.getWidth();



but this doesnt work :(

greetings