import java.awt.Toolkit;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
public class PicturePuzzle {
public static final int WIDTH = Toolkit.getDefaultToolkit().getScreenSize().width,
HEIGHT = Toolkit.getDefaultToolkit().getScreenSize().height;
public static JFrame frame;
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
frame = new JFrame("Picture Puzzle");
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
frame.setSize(WIDTH, HEIGHT);
frame.setUndecorated(true);
frame.add(new PicturePuzzlePanel());
}
});
}
}