I'm necro'ing this topic (in case the OP or others interested in maximize enabled notify on this thread) to ask for a new feature: Can Display have a feature to maximize and restore (unmaximize) the window? I need to both query and set the current maximized state. I need this for a desktop app where I want to restore the application window to the same state it was in when the app was closed.
Edit: Seems to be a related problem, if I save Display.getX/Y and use the values with Display.getLocation when the app next runs, the window is not positioned in the same location. Eg:
Display.setLocation(822, 525);
Display.create(...);
System.out.println(Display.getX() + ", " + Display.getY()); // 832, 565
That is on Windows 7 Ultimate 64-bit. I can create a new thread for either or both issues if you prefer.