JDK-4094035 : Setting an icon for dialog
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version:
    1.1.2,1.1.3,1.1.4,1.1.5,1.2.0,1.3.0,6 1.1.2,1.1.3,1.1.4,1.1.5,1.2.0,1.3.0,6
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,windows_95,windows_nt,windows_2000
  • CPU: generic,x86
  • Submitted: 1997-11-19
  • Updated: 2005-07-28
  • Resolved: 1998-04-09
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 Availabitlity Release.

To download the current JDK release, click here.
Other
1.1.7 b01Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Description

Name: ccC48265			Date: 11/19/97


Frames have a setIcon method to change the top left icon of the window.
But in dialogs, there is no way to change the dialog icon.
(Review ID: 20396)
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: 1.1.7 1.2beta4 INTEGRATED IN: 1.1.7 1.2beta4
2004-06-14

WORK AROUND Name: ccC48265 Date: 11/19/97 ======================================================================
2004-06-11

PUBLIC COMMENTS Dialogs in Win32 do not generally have icons. Changed so that non-resizable dialogs never have icons, and resizable dialogs inherit icons from their owner frame or dialog. Calling setIconImage on a Frame will propagate the icon to all it's resizable dialogs (and in turn their Dialog's if in 1.2 where Dialogs can own other Dialogs). This works even if the Dialog is already created and visible.
2004-06-10

EVALUATION There really shouldn't be an icon for a dialog. I've looked at a number of Windows apps, and almost none do this (since by default dialogs don't have icons). MS Outlook Express is the only app I could find that uses icons for dialogs. robi.khan@eng 1998-03-23 This is a Windows problem only. 1. Will not add Dialog.setIconImage API since it only applies to Windows and even then is non-standard. 2. The Windows UI guidelines for secondary windows state "the title bar does not include icons." Almost every app follows this rule. 3. Some Win32 apps do have an icon for resizable dialogs (also serves as nice hint of sizability). Windows UI guidelines are sketchy on resizable dialogs since they are not encouraged. In lieu of a Dialog.setIconImage call, resizable dialogs should get their icon from the frame. robi.khan@eng 1998-04-24
1998-04-24