JDK-6234296 : Setting maximized bounds and maximizing the frame moves the frame to a diff loc, XToolkit
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: linux_sun
  • CPU: x86
  • Submitted: 2005-03-01
  • Updated: 2011-05-13
Related Reports
Relates :  
Relates :  
Relates :  
Description
I am setting the maximized bounds to 0,0, 600, 600 for a JFrame. The frame is shown at 0,0 initially with a size of 200, 200. When I maximize the frame by clicking the maximize icon, the frame moves to a different location and gets maximized to 600, 600. The frame should not move to a diff location when maximizing it. 

This is noticed only on XToolkit with Tiger-FCS as well as Mustang (seen on cinnabar as well as Sol10). Not reproducible on Win32. On Motif, max bounds is not honored when maximing the frame.

I have attached a sample test. Execute the sample test. You would see a JFrame. Maximize the JFrame. If the frame moves to a diff location and gets maximized, the bug is reproduced.
###@###.### 2005-03-01 13:48:02 GMT

Comments
EVALUATION Current implementation tries to set normal hints is setMaximizedBounds(). XSetZoomHints should be used instead. Since hints setting code is dirty it would be better to reengeneer it completely in dolphin.
26-07-2005