If anyone can point me in the right direction.
Here is the code I have so far.
//UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
frame.setUndecorated(true);//To remove the bars around the frame.
frame.setResizable(false);//resizability causes unsafe operations.
frame.validate();
//actually applies the fullscreen.
GaphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().setFullScreenWindow(frame);
There are three complex example you may interested in oracle tutorials.
Take a look at this:
oracle.com/tutorial/fullscreen
and this:
oracle.com/tutorial/fullscreen/example
EDIT:
Here is a sample app does what you want: