For some reason my JFrame doesn't have a close button? I tried changing the code but it didn't seem to work.
public NewJFrame()
{
this.setUndecorated(true);
this.setVisible(true);
initComponents();
this.setDefaultCloseOperation(NewJFrame.EXIT_ON_CLOSE);
Toolkit tk = Toolkit.getDefaultToolkit();
int x = (int) tk.getScreenSize().getWidth();
int y = (int) tk.getScreenSize().getHeight();
this.setSize(x,y);
}