1 Reply Latest reply: Feb 2, 2013 9:33 AM by shakir.gusaroff RSS

    Loading window locations on startup

    Celer
      All

      We are saving the window size and location in a preferences so that when the GUI starts it will load back in the users last position.

      We are storing the pos using
                double xPosOnScreen = this.window.getX();
                double yPosOnScreen = this.window.getY();
      And then the height and width using
      double height = this.window.getHeight();
                double width = this.window.getWidth();
      When we startup the GUI we set the window using

      window.setHeight(height);
      window.setWidth(width);

      window.setX(xPos);
      window.setY(yPos);

      The pos seems to get set but the width and height do not.