You can find the frame insets by calling the getInsets method (defined in Container). Frame insets are discussed at the top of the Frame API docs.
Tom Hawtin - tackline
2008-10-11 00:28:00
You can find the frame insets by calling the getInsets method (defined in Container). Frame insets are discussed at the top of the Frame API docs.
So you want to paint the whole area and dont want a title bar at all?
Asuming that you use JDk 1.4 (at least) then you can declare the frame to be "undecorated" (java.awt.Frame#setUndecorated(boolean)). This way no title bar is created and therefore the frames paintable area is the same as the frames consumed area.