JDK-4034142 : Can not position Dialogs (always in center of frame) on Solairs/motif
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: beta,1.1.1,1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: generic,solaris_2.6
  • CPU: other,sparc
  • Submitted: 1997-02-24
  • Updated: 2001-07-04
  • Resolved: 2001-07-04
Related Reports
Relates :  
Description
<linda.schneider@eng 2-24-97>

Dialogs are automatically positioned in the center of the Frame in
solaris/motif awt (both modal and non-modal dialogs) This does not
match other platforms/toolkits (my testcase worked fine on kona and
on solaris/tiny/1.0k) so I belive it is a bug.

This prevents applets and applications (e.g. HJViews on solaris)
from being able to layer or position dialogs when necessary

Dialogs can be positioned on Solaris/Tiny/1.0.k and kona

( I received exceptions when attempting to run the 1.1 and 1.1.1
appletviewer with tiny on solaris ... so I was not able to verify its
interaction in that case)
This happens on:
	jdk1.0.2
	jdk1.0.k (release I- 10/11/96)
	jdk1.1 (FCS)
	jdk1.1.1 (dated 2/20/97)

I am including a simple test case (sorry ... its the old event model because
I needed on that worked on older jdks such as 1.0k)


The test case is under Attachments

Comments
EVALUATION The bug is still reproducible under Sun4 Solaris 2.7 with JDK 1.3RA. sandeep.konchady@Eng 1999-12-02 Name: dsR10078 Date: 07/04/2001 I used the following test case to reproduce the problem: ------------------------------------------------------- import java.awt.*; public class Test { public static void main(String[] args) { Frame f = new Frame(); Dialog d = new Dialog(f); f.setBounds(0, 200, 400, 400); d.setBounds(400, 200, 200, 200); f.setVisible(true); d.setVisible(true); } } ------------------------------------------------------- The bug is reproducible exactly as described with jdk 1.1 on Sparc/Solaris 2.7, CDE 1.3. The dialog is positioned in the center of the owner Frame. This test works fine on jdk 1.1.1 and later up to merlin b70. I verified that the bug is not reproducible on Sparc/Solaris 2.7 and Intel/Solaris 2.7 with CDE 1.3, WindowMaker and Gnome. ###@###.### 2001-07-02 ======================================================================
02-07-2001