@edit:
I HAVE JUST NOTICED THAT THERE'S A SIMILAR TOPIC ON THIS FORUM: https://coderanch.com/t/432705/Swing-AWT-SWT-JFace/java/disable-only-vertical-resize-JFrame - PLEASE CLOSE/REMOVE MINE OR MERGE TOPICS.
---
Hello,
I'd like to prevent JInternalFrame from being resized but only in vertical directions - is there any way I can achieve this in "easy way"?
Now I'm using ComponentListener to know when JIF is resized (and prevent vertical resize) but I think it's not good idea... I wonder if somewhere is method/booleanFlag to prevent one direction resizing (I know there is setResizable(false) but it blocks both, vertical and horizontal resizing and I want only vertical one to be blocked)
Is the code above only solution for what I want do achieve?