JDialog setLocation problem

Hi,

I am stuck in very weird problem:

I have an Jinternal frame that invokes a non-modal Jdialog box.

I need to set the location of the dialog box from my code.

The setLocation takes effect until I drag my window to a new location with my mouse.

Any calls to setLocation after dragging fails. I see that the dialog box is temporarily drawn at the new position but it quickly moves back to its last known position.(I can see a sort of flicker...)

I tried SetBounds, reshape also - same behaviour...

I am so puzzled.

Any help will be appreciated.

[599 byte] By [rachnajaina] at [2007-11-27 1:33:46]
# 1

If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program[/url] (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.

Don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags[/url] so the posted code retains its original formatting.

camickra at 2007-7-12 0:40:18 > top of Java-index,Desktop,Core GUI APIs...