Home arrow static arrow Java Programming [Archive] - minimize JinternalFrame without click
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - minimize JinternalFrame without click
This topic has 3 replies on 1 page.

Posts:1
Registered: 4/24/04
minimize JinternalFrame without click  
Jun 28, 2004 7:30 PM



 
Does anyone know how to minimized JInternalFrame without using the mouse to click on the minimize icon

thanks in advance
 

Posts:24,517
Registered: 98-02-27
Re: minimize JinternalFrame without click  
Jun 28, 2004 8:01 PM (reply 1 of 3)



 
I've never tried it but it looks like you can do the following:

InternalFrameUI ui = internalFrame.getUI();
BasicInternalFrameUI basicUI = (BasicInternalFrameUI)ui;
basicUI.iconifyFrame(...);
 

Posts:446
Registered: 6/23/00
Re: minimize JinternalFrame without click  
Jun 28, 2004 8:05 PM (reply 2 of 3)



 
Do you think of a predefined keyboard shortcut?
There is somewhere in the documentation a list of keyboard shortcuts for standard look&feel's.
or, you can define your own keyboard or mouse shortcut event,
if you don't want to enable the system menu of your JInternalFrame.
 

Posts:446
Registered: 6/23/00
Re: minimize JinternalFrame without click  
Jun 28, 2004 8:14 PM (reply 3 of 3)



 
http://java.sun.com/products/jlf/ed1/dg/appendix.htm#35971
http://java.sun.com/products/jlf/ed1/dg/appendix.htm
 
This topic has 3 replies on 1 page.