File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 2446
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
I agree. Here's the link:
subject: JInternalFrame iconifying position issue
It's not a secret anymore!