United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4094035 : Setting an icon for dialog

Details
Type:
Enhancement
Submit Date:
1997-11-19
Status:
Resolved
Updated Date:
2005-07-28
Project Name:
JDK
Resolved Date:
1998-04-09
Component:
client-libs
OS:
windows_nt,generic,windows_95,windows_2000
Sub-Component:
java.awt
CPU:
x86,generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.1.2,1.1.3,1.1.4,1.1.5,1.2.0,1.3.0,6
Fixed Versions:
1.1.7 (b01)

Related Reports
Backport:
Duplicate:
Duplicate:
Duplicate:
Duplicate:
Relates:

Sub Tasks

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



Hardware and Software, Engineered to Work Together