Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Keep non-modal JDialog in foreground

30 views
Skip to first unread message

Bernd Armbruster

unread,
Sep 10, 2003, 2:56:38 AM9/10/03
to
Hello Everybody!

I've written a draw-application. Now I want to integrate this
application in another. But: I cannot add the toolbar of my
draw-application to the frame of the parent-application. So I want to
create a JDialog ( or JFrame or whatever ) that is not modal but stays
in the foreground of the parent-application anyways, containing my
toolbar. But I don't know how to realise this.

Does anybody have an idea?

Thanks a lot!

Bernd Armbruster

Harald Hein

unread,
Sep 10, 2003, 3:49:34 PM9/10/03
to
"Bernd Armbruster" wrote:

> So I want to
> create a JDialog ( or JFrame or whatever ) that is not modal but
> stays in the foreground of the parent-application anyways,

That's not possible with pure Java.

Steve W. Jackson

unread,
Sep 10, 2003, 3:53:18 PM9/10/03
to
In article <9b587477.03090...@posting.google.com>,
b...@cluetec.de (Bernd Armbruster) wrote:

>:Hello Everybody!

A JDialog which has been given an owning JFrame will stay in front of
that JFrame without being modal.

But why can't you use a JToolbar in your application's main frame?

= Steve =
--
Steve W. Jackson
Montgomery, Alabama

0 new messages