Java tutorial
import java.awt.Color; import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; import javax.swing.JFrame; import javax.swing.JPanel; public class Main { public static void main(String[] args) { GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice vc = env.getDefaultScreenDevice(); JFrame window = new JFrame(); JPanel comp = new JPanel(); comp.setBackground(Color.RED); window.add(comp); window.setUndecorated(true); window.setResizable(false); vc.setFullScreenWindow(window); } }