Hi Cynthia,
This worked without a problem for me by using either show() or
setVisible(true), *then* invoking toFront(). I didn't have to use an
intermediate call to requestFocus(). I'm on NT 4.0, SP 6a and JDK 1.3.
I expect that the problem was that the frame hadn't been realized and
toFront() prior to that point did nothing. There's a good deal of
functionality that amounts effectively to a no-op when a component hasn't
been realized. For more information, see "The Single Thread Rule" at:
http://java.sun.com/docs/books/tutorial/uiswing/overview/threads.html
Joe Sam
Joe Sam Shirah
Autumn Software - Consulting/Development/Outsourcing
Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
Going International? http://www.jguru.com/faq/I18N
Qu� Java400? http://www.jguru.com/faq/Java400
----- Original Message -----
From: "Cynthia Jeness" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Brian Hedges"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Eric Faulhaber"
<[EMAIL PROTECTED]>; "Gregory Shah" <[EMAIL PROTECTED]>
Sent: Thursday, September 27, 2001 8:39 AM
Subject: Re: [JS] Java Application Z-order Problem under NT (previously
starts minimized)
> This appears to work correctly now; I am getting someone to test in the
"real" environment. Thanks for the suggestion. I had previously tried
moving the
> "toFront()" down before but never in conjunction with the
"requestFocus()".
>
> Thanks,
> Cindy
>
>
> Niek Ederveen wrote:
>
> > Hi Cynthia,
> >
> > Changing the command sequence did the trick for me (NT 4.00.1381):
> >
> > frame.getContentPane().add(button, BorderLayout.SOUTH);
> > frame.setBounds(0, 0, 200, 200);
> > // frame.toFront();
> >
> > frame.setVisible(true);
> > frame.requestFocus();
> > frame.toFront();
> >
> > Hope this helps,
> >
> > Niek
> >
> >
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing