tela cheia em jframe

// Getting fullscreen **effect** by extending the frame either direction.
frame.setExtendedState(JFrame.MAXIMIZED_BOTH); 
frame.setUndecorated(true);
Minecraftian14