JDK-6415057 : Icon of the child dialog is not updated on-the-fly when parent's icon changes, XToolkit
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2006-04-19
  • Updated: 2006-10-04
  • Resolved: 2006-05-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b85Fixed
Related Reports
Relates :  
Description
Normally Dialogs inherit the icon from the parent window. I have a frame and a Dialog and Frame is the parent of the dialog. I have set the frame's icon to 'image1'. I am making the frame visible. On clicking a button, the frame, I am opening the dialog. Dialog also shows the same icon.

Now on clicking a button on the dialog, I am changing the icon of the parent frame. But it is not reflected on the dialog on SolSparc10-JDS whereas it is reflected properly on Win32. I reproduced it with Mustang-b80. This is reproducible on Motif as well.

On XToolkit, I need to dispose the current dialog and create a new one in order to get the new icon (even hiding and showing the dialog also doesn't help).

I have attached a sample test. Execute the sample test. Click on the button in the frame. A dialog comes up. Check whether dialog uses the same icon as the frame. Click the button on the dialog. Check whether Frame's icon changes to a new one. Check whether the dialog's icon changes. If it does not, the bug is reproduced.

Comments
EVALUATION This bug is fixed together with 6339074
03-05-2006