public xLauncher()
  {
    launcher = this;
    setMinimumSize(new Dimension(800, 599));
    setSize(800, 599);
    setUndecorated(true);
    setResizable(false);
    setDefaultCloseOperation(3);
    setLocationRelativeTo(null);
    setTitle(xSettings.LauncherName + " v" + xMain.getVersion());

    xTheme theme = new xTheme();
    this.theme = theme;
    getContentPane().add(theme);

    xUtils utils = new xUtils();
    if (utils.getPlatform().ordinal() == 0) {
      this.sound = false;
    }

    addMouseListener(new MouseAdapter() {
      public void mousePressed(MouseEvent e) {
        if (SwingUtilities.isLeftMouseButton(e)) {
          xLauncher.this.initialClick = e.getPoint();
          xLauncher.this.getComponentAt(xLauncher.this.initialClick);
        }
      }
    });
    addMouseMotionListener(new MouseMotionAdapter() {
      public void mouseDragged(MouseEvent e) {
        if (SwingUtilities.isLeftMouseButton(e)) {
          int thisX = xLauncher.this.getLocation().x;
          int thisY = xLauncher.this.getLocation().y;
          int xMoved = thisX + e.getX() - (thisX + xLauncher.this.initialClick.x);
          int yMoved = thisY + e.getY() - (thisY + xLauncher.this.initialClick.y);
          int X = thisX + xMoved;
          int Y = thisY + yMoved;
          xLauncher.this.setLocation(X, Y);
        }
      }
    });
    try
    {
      setIconImage(ImageIO.read(xLauncher.class.getResource("/images/favicon.png")));
    } catch (IOException e) {
      e.printStackTrace();
    }
  }