Anyone here know how to get the size of the titlebar and borders of a JFrame? my game worked great till i decided i want to put an AWT MenuBar in there. adding the menuBar to my render method causes it to vanish up behond the game’s title bar. If i knew how to get the offset between the window’s edge and the usable part (as far as the AWT’s concerned), having it in the render loop would work.
Since on a diferent platform or even if someone’s got a diferent theme there’s always a diferent sized title bar, hard-coding a value just won’t work