This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JInternalFrame iconifying position issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JInternalFrame iconifying position issue" Watch "JInternalFrame iconifying position issue" New topic

JInternalFrame iconifying position issue

John Jai

Joined: May 31, 2011
Posts: 1776
When i maximize or minimize a JInternal frame can i make the iconfied internal frames also move with it always showing at the bottom left (not necessarily in the front)? Because if i iconify an internal frame and then maximize the internal frames stay in the middle of the screen. And If i iconify an internal frame when the JFrame is at its maximum size and then minimize it again the iconfied frames disappear. They appear only after the JFrame is stretched to its maximum. I have attached screen shot of the issue.

Thanks for your suggestions.

[Thumbnail for minimized_position_issue.JPG]

Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2414
Maybe you are looking for something like this:

You would add the listener to the desktop pane using:

John Jai

Joined: May 31, 2011
Posts: 1776
Hi Rob,

This is what i was exactly looking for. Thanks for showing ComponentAdapter class usage. I will explore on it more.

i found your posts in the Swing forum very useful and the Fixed Column Table Model thing you had in a web blog tops the list.

Thanks a lot.

Since i knew the icon's height as i use it set when iconifying icons i was able to do it bit easily like below
It is sorta covered in the JavaRanch Style Guide.
subject: JInternalFrame iconifying position issue
It's not a secret anymore!