From: Hiroo H. <hir...@co...> - 2005-01-06 04:24:50
|
Rib> > Rib> I think it would be a good idea to just get rid of this positioning Rib> > Rib> code and let the window manager do it's job. Rib> > Rib> > I agree with you that the window manager should do the job for multiple Rib> > window mode. Rib> > Rib> > If you agree with me, I'll swap these methods. I made a mistake. SDI mode has the following code now. public void moveToDefaultLocation() { setLocation(30*frame_count, 30*frame_count); } This creates the problem Torsten reported. On MS Windows if I get rid of the positioning code (setLocation() call), the new window is place on the left top corner of the screen (x = y = 0). I cannot find the way to let the window manager place new window on a proper place as it usually does. # What's happen with Linux/MacOSX window managers if setLocation() is # commented out? I'm thinking to use the code for the current MDI mode in both MDI and SDI mode. If there is no objection, I'll do that. -- Hiroo Hayashi |