Hi, what happens if you use

yourJFrame.setState(JFrame.MAXIMIZED_BOTH);