-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
6
-
generic
-
generic
A DESCRIPTION OF THE REGRESSION :
When the icon of SWT application is not set, its icons are not consistent:
title bar icon: SWT default icon
task bar icon: new Java icon
When the icon of SWT application is set, its title bar icon and task
bar icon are consistent.
The related Eclipse bug is at https://bugs.eclipse.org/bugs/show_bug.cgi?id=127352.
Perhaps the change results from the rewrite of AwtFrame::OwnedSetIcon() function in j2se\src\windows\native\sun\windows\awt_Frame.cpp.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6292933
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6280303
REPRODUCIBLE TESTCASE OR STEPS TO REPRODUCE:
-----
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
public class Test {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
// Uncommenting the line below fixes the problem.
// shell.setImage(new Image(display, "duke.gif"));
shell.open();
while (!shell.isDisposed ()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
}
-----
>javac -cp swt.jar Test.java
>java -cp swt.jar;. Test
-----
condition:
Windows XP
JDK 6rcb70
SWT 3.1.2
RELEASE LAST WORKED:
5.0 Update 6
RELEASE TEST FAILS:
mustang-b70
When the icon of SWT application is not set, its icons are not consistent:
title bar icon: SWT default icon
task bar icon: new Java icon
When the icon of SWT application is set, its title bar icon and task
bar icon are consistent.
The related Eclipse bug is at https://bugs.eclipse.org/bugs/show_bug.cgi?id=127352.
Perhaps the change results from the rewrite of AwtFrame::OwnedSetIcon() function in j2se\src\windows\native\sun\windows\awt_Frame.cpp.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6292933
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6280303
REPRODUCIBLE TESTCASE OR STEPS TO REPRODUCE:
-----
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
public class Test {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
// Uncommenting the line below fixes the problem.
// shell.setImage(new Image(display, "duke.gif"));
shell.open();
while (!shell.isDisposed ()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
}
-----
>javac -cp swt.jar Test.java
>java -cp swt.jar;. Test
-----
condition:
Windows XP
JDK 6rcb70
SWT 3.1.2
RELEASE LAST WORKED:
5.0 Update 6
RELEASE TEST FAILS:
mustang-b70
- relates to
-
JDK-5106536 Windows XP taskbar icons for grouped Java apps not correct
-
- Resolved
-
-
JDK-4805690 Application has wrong icon and title at windows taskbar
-
- Closed
-