/** Initializes the settings panel. */
  private void initSettingsPanel() {
    int startX = 30;
    int startY = 30;

    try {
      this.setLocation(startX, startY);
      this.dispose();
    } catch (Exception e) {
    }

    jpSettings = new SettingsPanel();
    MouseMoveListener mml = new MouseMoveListener(jpSettings);
    this.addMouseListener(mml);
    this.addMouseMotionListener(mml);

    this.setAlwaysOnTop(true);
    this.setUndecorated(true);

    try {
      if (!AWTUtilities.isTranslucencyCapable(this.getGraphicsConfiguration())) {
        log("Can not set transparency for settings form");
        this.setBackground(new Color(64, 64, 64, 255));
        this.jpSettings.setBackground(new Color(64, 64, 64, 255));
        this.jpSettings.setOpaque(true);
      } else {
        log("Transparency is set for settings form");
        AWTUtilities.setWindowOpaque(this, false);
      }
    } catch (Exception ex) {
      log(ex);
    }

    this.add(jpSettings);

    // Hack for handling draggable JFrames on Mac OSX
    this.getRootPane().putClientProperty("apple.awt.draggableWindowBackground", Boolean.FALSE);

    this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    this.setLocation(startX, startY);
    this.pack();
    this.setVisible(false);
  }