-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.1
-
None
-
sparc
-
solaris_2.5
[never 6 dec 96]
I've tried several times to write code to place frames at particular locations but it doesn't seem to behave consistently. There's a sample piece of code in the The Java Class Libraries: An Annotated Reference which purports to place a new frame with its corner where you click. The book shows what appears to be a working screenshot from Windows 95 but the same code doesn't work under Solaris. Presumably after call to setLocation(100, 100) a call to getLocation() should return (100, 100) but it doesn't. Under CDE it returns (105, 23) which almost makes some sense given that the Insets are 5 on the left and 25 on the top, but it looks like the insets are wrong as well.
I've tried several times to write code to place frames at particular locations but it doesn't seem to behave consistently. There's a sample piece of code in the The Java Class Libraries: An Annotated Reference which purports to place a new frame with its corner where you click. The book shows what appears to be a working screenshot from Windows 95 but the same code doesn't work under Solaris. Presumably after call to setLocation(100, 100) a call to getLocation() should return (100, 100) but it doesn't. Under CDE it returns (105, 23) which almost makes some sense given that the Insets are 5 on the left and 25 on the top, but it looks like the insets are wrong as well.
- duplicates
-
JDK-4017502 Window coordinate space confusion on Solaris
-
- Closed
-
- relates to
-
JDK-4090413 setLocation is not working correctly inside a frame constructor with solaris
-
- Closed
-