RE: [OpenMap Users] Problem minimizing a jinternalframe

From: Graham, John <>
Date: Wed, 30 Jan 2008 10:49:01 -0600


As far as I know, JInternalFrame sets its own root pane in the
constructor via a call to createRootPane(). WindowsSuppport treats a
JInternalFrame like a palette_layer inside a JLayeredPane, so I would
think that minimize would iconify the internal frame within the
JLayeredPane container (internal frame desktop).

The part that surprises me is that Maximize and Close work fine on the
JInternalFrame but Minimize does not. I would be fine with the
JinternalFrame minimizing to the internal desktop.

I am using JDK 6 update 4, Windows XP. I know this is not really an
OpenMap problem, but just curious about whether anyone else has had a
problem with this.


- John

-----Original Message-----
From: Don Dietrick []
Sent: Tuesday, January 29, 2008 6:48 PM
To: Graham, John
Subject: Re: [OpenMap Users] Problem minimizing a jinternalframe

Hi John,

I'm wondering if JInternalFrame needs a root pane set somewhere to
minimize to, like a desktop? I know I've done this in the past, but the
icon went to a place on the 'internal desktop' as opposed to the OS
location for icons.

Just out of curiosity, what OS/JDK are you using?

- Don

On Jan 28, 2008, at 4:11 PM, Graham, John wrote:

> Hi,
> I am creating a JInternalFrame that is displayed using
> com.bbn.openmap.gui.WindowSupport displayInWindow.
> The window displays fine and I can maximize and close the window.
> The problem is, I can't seem to minimize the window.
> I extended WindowSupport to implement InternalFrameListener and I
> added a internalFrameIconified method that calls setIcon(true) on the
> JInternalFrame when the minimize button is clicked...but the window
> still remains 'normal'. Peeking inside the JInternalFrame with the
> debugger, I can see that isIcon is set to true when I click minimize.

> I also made sure that the JInternalFrame is iconifiable
> by calling setIconifiable(true). setIcon just fires an
> INTERNAL_FRAME_DEICONIFIED event. setIcon throws a
> PropertyVetoException when the property change event is vetoed bu
> the JInternalFrame, and I am not getting this exception.
> Theoretically, I should't even need to extend WindowSupport based on
> thumbing through the code - as iconification is already supported.
> Any clues?
> John W. Graham
> Northrop Grumman Defense Group Simulation & Training Civil Effects
> Leadership Training Simulation (CELTS)
> (407) 243-2021

Don Dietrick,
BBN Technologies, Cambridge MA

[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Jan 30 2008 - 11:50:25 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:08 EDT