aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JInternalFrame iconifying size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JInternalFrame iconifying size" Watch "JInternalFrame iconifying size" New topic
Author

JInternalFrame iconifying size

John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
Hi,

I would like to know how the Iconified size of a JInternalFrame added to a JDesktopPane (content pane of a JFrame) is calculated. I have a total of 4 internal frames. When the frame is on its initial size i open two of the internal frames and iconify them. The get iconified some what smaller. Now I just maximize and minimize the outer JFrame (either clicking the min/max button or pulling the borders) and then tried iconify the other two internal frames. Now the other two iconfied frames have a larger size than the first two.

Can any one please tell me whether when iconifying a internal frame what are the external factors taken into account. I have a custom desktop manager which does nothing on iconfication of its internal frames. I have attached the issue screen shot too.



[Thumbnail for issue-shot.JPG]

John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
I resolved the issue by overriding iconifyFrame() method in DestopManager interface.
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
This was giving better control with Y value of icons. Sometimes they were not aligned in a straight line.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JInternalFrame iconifying size