How can I "glue" JDialog to an owning JFrame ?



I have a non-modal JDialog with a JFrame as an owner.
On a mouse right-click the dialog becomes visible at the mouse
position. And it works fine. But when I start dragging JFrame , the
JDialog remains on the same screen position. Is there a way to "glue"
the dialog to the frame ?

.



Relevant Pages

  • Re: Make a frame not register with the OS
    ... JDialog does exactly what I need. ... >:always in front of the owner JFrame (the main window of my program). ...
    (comp.lang.java.gui)
  • Displaying a JDialog without giving it focus
    ... background that may trigger an informational non modal JDialog to popup ... (owner is the JFrame that the user is working with). ... is it possible to display the popup JDialog without giving it ...
    (comp.lang.java.programmer)
  • Re: Focus to Owner JFrame?
    ... JFrame frame1 = new JFrame; ... JFrame frame2 = new JFrame; ... but there is no owner for a Frame/JFrame. ... > If frames are created in this order: ...
    (comp.lang.java.gui)