Disable moving functionnality of window

Hi all,

I am developping in application that its window must be disable for resize and moving.

I explain more, the user should be disable to move or resize the window.

For resize point, I have found a solution but for the move one, no solution.

So please help me to make the window fixed.

Thank's in advance.

[346 byte] By [Badra] at [2007-10-3 7:55:20]
# 1
You can add a ComponentListener. On "componentMoved" you can set the Location of the window to the default value.
Andre_Uhresa at 2007-7-15 2:57:52 > top of Java-index,Desktop,Core GUI APIs...
# 2
Can you please give me an example of code for this purpose.
Badra at 2007-7-15 2:57:52 > top of Java-index,Desktop,Core GUI APIs...
# 3

//Listen for component events

frame.addComponentListener(new ComponentAdapter() {

public void componentResized(ComponentEvent e) {}

public void componentHidden(ComponentEvent e) {}

public void componentMoved(ComponentEvent e) {

setLocation(30, 30); // Reset window's location.

}

public void componentShown(ComponentEvent e) {}

});

rykk

rykk.a at 2007-7-15 2:57:52 > top of Java-index,Desktop,Core GUI APIs...
# 4
By default a Window is not movable.
camickra at 2007-7-15 2:57:52 > top of Java-index,Desktop,Core GUI APIs...
# 5
It's working properly.Thanks for your help.
Badra at 2007-7-15 2:57:52 > top of Java-index,Desktop,Core GUI APIs...