> Hello,
>
[quoted text clipped - 4 lines]
> of the JIF isn't covered by the glass pane. Is there a way to cover the
> complete pane with the glass pane?
I'm not completely sure about this, not having tried it. But given that
the JIF is generally used with a JDesktopPane, you might try using it
there instead.
> 2. Is there a way to cancel the deactivation of a JIF? I.e. if the user
> clicks on another frame a "internalFrame(De)Activated" event is generated -
> how can I stop this activation/deactivation? (because I want the user to
> complete some input e.g.).
In our app, we've got a JIF subclass implementing VetoableChangeListener
so that we can check whether the document is dirty and allow a user to
save, not save or cancel. The very first thing we do in that listener's
vetoableChange() method is check whether the property name matches the
JIF's IS_CLOSED_PROPERTY, and whether it's changing from false to true
to indicate closing. There's no property listed for a JIF (at least in
1.4) that I can clearly associate with deactivation, unless it's maybe
the IS_SELECTED_PROPERTY, so you'd have to experiment with it. But if
it's the correct property, then you can throw a PropertyVetoException
from within this method when conditions shouldn't allow the JIF to
deactivate.
If that won't work, then I guess some tinkering with your
InternalFrameListener might be in order. There's typically a
DesktopManager somewhere that can be told to reactivate your JIF if it's
not supposed to give up its status.
> Thanks a lot!
>
> Ren?
HTH.
= Steve =

Signature
Steve W. Jackson
Montgomery, Alabama
Rene Ruppert - 17 Feb 2005 08:54 GMT
Hi Steve,
> In our app, we've got a JIF subclass implementing VetoableChangeListener
> so that we can check whether the document is dirty and allow a user to...
I found out about the veto thing later yesterday evening. It works. In fact
it is the IS_SELECTED property you have to check. I posted a solution.
("Make JInternalFrame behave like modal dialog", 16.02.2005).
Thank You for the information.
Ren?