Java AWT/Swing: Get notified on change of position/size of my window?

1 & acc: that one did it very well, thanks! – Atmocreations Nov 8 '09 at 22:39 I'm curious as to why this is better than a ComponentAdapter. I tend to create a derivative and then override the ComponentMoved() and ComponentResized() methods.

– clartaq Nov 9 '09 at 15:10 The question was about which listener to use. People can choose to implement the interface or extend the adapter based on their requirements. – camickr Nov 9 '09 at 17:26.

You might want to try the erarchyBoundsListener myJFrame.getContentPane(). AdderarchyBoundsListener(new erarchyBoundsListener(){ public void ancestorMoved(erarchyEvent e) { doSomething(); } public void ancestorResized(erarchyEvent e) { doSomethingElse(); } see java.sun.com/docs/books/tutorial/uiswing... for a full list of listeners that all swing components support.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions