Getting the size of the window

Got a little “noobish” question here, how do i go about if i want to get the size (in pixels) of the program window?

Another question: How do i resize the program window?

 base.win.getProperties().getXSize()
 base.win.getProperties().getYSize()

for resizing during runtime i dunno. but i’m sure there are thread on the forum about it. for setting the size on startup: this can be done using the config file (refer to the manual,chapter “the config file”)

Something like:

base.win.requestProperties(WindowProperties.size(newx, newy))