I know this thread is outdated, but I found it while searching for how to do the same myself. I could not find the solutions I wanted to use, so I came up with this. I found that the solution below not only works, but is also much simpler than the answers above.
JFrame frame = new JFrame(); frame.setResizable(false); frame.setUndecorated(true); Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); frame.setSize(dim); frame.setVisible(true);
source share