Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. import java.awt.Toolkit;
  2.  
  3. import javax.swing.JFrame;
  4. import javax.swing.SwingUtilities;
  5.  
  6.  
  7. public class PicturePuzzle {
  8.     public static final int WIDTH = Toolkit.getDefaultToolkit().getScreenSize().width,
  9.             HEIGHT = Toolkit.getDefaultToolkit().getScreenSize().height;
  10.     public static JFrame frame;
  11.     public static void main(String[] args) {
  12.         SwingUtilities.invokeLater(new Runnable() {
  13.            
  14.             @Override
  15.             public void run() {
  16.                 frame = new JFrame("Picture Puzzle");
  17.                 frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
  18.                 frame.setSize(WIDTH, HEIGHT);
  19.                 frame.setUndecorated(true);
  20.                 frame.add(new PicturePuzzlePanel());
  21.             }
  22.         });
  23.     }
  24. }