>>>>> Nelson Minar writes:
>> If I use setSize(100,100); I get a frame that's smaller than that:
>> something like 90x72 I think: I've deleted the source and can't be
>> bothered retyping it.
Nelson> Top level frame sizes unhelpfully include the size of the
Nelson> window decorations - titlebar and borders.
Right. If you use setSize(100,100) the frame should have exactly that
size - including the borders and the titlebar. E.g. if the title
bar height is 24 and border size is 4, the drawing area of the
frame will have the size 92x72.
Nelson> There's some magic way to get the size of the decorations
Nelson> from Java and do the math yourself.
If the frame has no warning bar and no menu bar and the peer already
has been created, you can simply do a getInsets() to get the the
size of the decorations.
Juergen