Java tutorial
//package com.java2s; import java.awt.Rectangle; import java.awt.Toolkit; import javax.swing.JDialog; public class Main { private static final Toolkit toolkit = Toolkit.getDefaultToolkit(); public static void dialogFullScreen(JDialog dialog) { dialog.setBounds(new Rectangle(0, 0, toolkit.getScreenSize().width, toolkit.getScreenSize().height)); } }