• Post Reply Bookmark Topic Watch Topic
  • New Topic

JFrame resize events  RSS feed

 
Manuel Moons
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Does anybody know if there is a way to know if my JFrame was resized. I want to save the bounds of my JFrame when the user resizes it.

I have overwritten all setBounds, setLocation,setSize, resize, reshape methods but none of them seems to be called.

I have added a PropertyChangeListener,WindowListener,WindowStateListener but none of them is called either.

I am wondering how this is possible. If anybody has a clue.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!