S
sent1729
Hi all,
In my application i would like to have the Jdialog always on top
without setting the modal property as true. I referred to one solution
provided in this forum which said: "to make the dialog a WindowListener
to itself and then call this.toFront() in the windowDeactivated()
method".
Well, this soultion works, but it always closes as opens the dialog
with in a fraction of a second. In other words, if I click on the
parent Frame, I see the dialog flickering before appearing on the
screen. I think this happens because I am bringing the Jdialog to front
when the JDialog window is deactivated. Is there any othe work around
the would just keep the JDialog on top of the frame without having to
bringing it to front.
Any help is grealy appreciated.
Thanks
Nathan.
In my application i would like to have the Jdialog always on top
without setting the modal property as true. I referred to one solution
provided in this forum which said: "to make the dialog a WindowListener
to itself and then call this.toFront() in the windowDeactivated()
method".
Well, this soultion works, but it always closes as opens the dialog
with in a fraction of a second. In other words, if I click on the
parent Frame, I see the dialog flickering before appearing on the
screen. I think this happens because I am bringing the Jdialog to front
when the JDialog window is deactivated. Is there any othe work around
the would just keep the JDialog on top of the frame without having to
bringing it to front.
Any help is grealy appreciated.
Thanks
Nathan.