I\'m working on a java swing application that will be used in a psychology experiment and the researchers have requested that I make the program \"black out the screen\" in
Use the setUndecorated(true) property. Note that this has to be done before making the frame visible.
JFrame frame = new JFrame(); Toolkit tk = Toolkit.getDefaultToolkit(); frame.setBounds(new Rectangle(new Point(0, 0), tk.getScreenSize())); frame.setUndecorated(true); frame.setVisible(true);