JDK-4084678 : iconImage not propagated from Frame to Dialog
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.1.3,1.1.4,1.1.5,1.2.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic,windows_95,windows_nt
  • CPU: generic,x86
  • Submitted: 1997-10-07
  • Updated: 1998-04-09
  • Resolved: 1998-04-09
Related Reports
Duplicate :  
Description

Name: rm29839			Date: 10/07/97


If you create a Frame you can use setIconImage()
to set the icon that will appear in the Frame's
titlebar in Windows NT and Win95. This works just
fine.

If you then create a Dialog for which this Frame
is the parent you will find that the Dialog still
uses the default "coffee cup" icon instead of
the iconImage for it's parent Frame. (Microsoft's
SDK Beta 2.0 does this.)

It makes sense that this icon would be propagated,
but it would be acceptable to provide a setIconImage()
method on Dialogs so they could be set explictly.
Otherwise *all* Dialogs will *always* contain the
coffee cup icon; yuk.
company - Forte Software , email - ###@###.###
======================================================================

Comments
WORK AROUND Name: rm29839 Date: 10/07/97 No workaround, since there is no setIconImage() method defined in Dialog. ======================================================================
11-06-2004

SUGGESTED FIX Propagate the icon from the parent frame to the Dialog when using Win 32.
11-06-2004

PUBLIC COMMENTS fixed so that icon propogates from frame to dialog (see 4094035)
10-06-2004