Remove title bar with maximum size

But how would I get it so the window can be maximized but still get rid of the title bar

You can manually set the size to exclude the task bar:

//setExtendedState(JFrame.MAXIMIZED_BOTH);
setUndecorated ( true );
GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
setBounds(env.getMaximumWindowBounds());
setVisible(true);

This should also work if the task bar is positioned other than the bottom.

Also note that components should be added to the frame BEFORE the frame is made visible.