JDK-4073551 : setIconImage changes the icon for the frame but not its dialog children
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.1.3,1.1.5
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic,windows_nt
  • CPU: generic,x86
  • Submitted: 1997-08-21
  • Updated: 1998-04-09
  • Resolved: 1998-04-09
Related Reports
Duplicate :  
Description
Name: rlT66838			Date: 08/21/97

In Java Frames and Dialogs have an icon on the
upper left hand side of the Window. We would
like to change the default Java Mug image to
something specific to our application.

I was able to change the image in a Frame using
setIconImage. It works fine but all the children
dialogs kept displaying the same Java Mug. Since
there is no SetIconImage method in Dialog class
or any of it's super classes, I was hoping that
it will use the one specified in its parent frame
class.

======================================================================


Comments
WORK AROUND Possible resolution: a) Add a setIconImage in the Dialog class. or b) Dialog class should use the getIconImage from its parent Frame class. c) A combination of both a and b. b should be the default. a gives more freedom to developers to use different images for different dialogs. ======================================================================
11-06-2004

PUBLIC COMMENTS Dialogs now inherit icon from owner window. (see 4094035)
10-06-2004