-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
1.0, 2.0, 1.0.2, 1.1, 1.1.3, 1.1.4, 1.1.6
-
generic, x86, sparc
-
solaris_2.4, solaris_2.5, solaris_2.5.1, windows_95, windows_nt
So in order to make deiconify work, Window.toFront() needs to check to see if the window is iconified. If it is, then go ahead and deiconify it.
I have a fix for this in src/win32/sun/windows/awt_Window.cpp by adding the following lines to the end of the sun_awt_windows_WWindowPeer_toFront() method:
if (::IsIconic(w->GetHWnd()))
::ShowWindow(w->GetHWnd(), SW_RESTORE);
I tested this fix and it works. I am in Devpro and would be happy to putback this fix thru the devpro vmgate. Please let me know. Thanks.
I don't have a fix for its counter part on Solaris. Please fix it on Solaris too.
- duplicates
-
JDK-4037788 Win32: Window.show() doesn't deiconify when needed
- Closed
-
JDK-4064443 Cannot programatically de-iconify a frame from another frame.
- Closed
-
JDK-4099347 No programmatic way to deiconify a Frame
- Closed
-
JDK-1235108 No way to iconize or deiconize (shrink/expand) a Frame programmatically
- Closed
-
JDK-4077993 RFE: APIs to iconify and deiconify windows needed
- Closed
-
JDK-4065670 Iconifying and Deiconifying java.awt.Windows
- Closed
-
JDK-4061449 Window management: Java AWT API needed to iconify and de-iconify windows.
- Closed