iamlamb1988 / Arcade

The purpose of this project is to build extensible library of arcade games.
0 stars 0 forks source link

JFrame and JPanel Size mismatch #6

Closed iamlamb1988 closed 2 years ago

iamlamb1988 commented 2 years ago

Upon Construction: The singleton DesktopApp (extends JFrame) is set to a hardcoded value. All IMenu (extends JPanel) are set to the same size.

The JFrame Size and the inner window are NOT the same and is actually smaller.

Need the JFrame to be EXACTLY big enough to cover the entire IMenu instance.

iamlamb1988 commented 2 years ago

Temporary fix: Passing in the desktop app -16 and -39 pixels for width and height respectfully. width_px-16,height_px-39

Seems to permanently fit the JPanels perfectly. Would prefer a more robust solution.