Hello all,
I have encountered a problem that seems like it ought to have an easy fix, but I can't seem to find any info about it, anywhere.
My
applet is restricted to using AWT with a target JVM version of 1.3.1. After a loading sequence, the applet creates a Frame and proceeds to add components to the frame according to a specific layout. No layout manager is being used. The problem is that if I try to add one of my custom components at (0, 0), it appears underneath the title bar of the Frame. This title bar varies in size depending on the browser that was used to launch the applet (and even depending on the theme which the browser is using). I need a way to get the (vertical) dimension of the titlebar so I can adjust my origin for custom drawing, but I can't seem to find any info whatsoever on how to do this in a platform-independent way. Any help? Thanks in advance.