>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.

Top level frame sizes unhelpfully include the size of the window
decorations - titlebar and borders. It was a really bad choice, IMHO,
but it's there. There's some magic way to get the size of the
decorations from Java and do the math yourself.

Another fun thing is that Frames in Windows can't be any narrower than
about 108 pixels - that's the minimum width of the title bar.

Platform independent GUI is suprisinglyh hard.

                                                  [EMAIL PROTECTED] 
.       .      .     .    .   .  . . http://www.media.mit.edu/~nelson/ 

Reply via email to