Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6384461

REGRESSION: The title bar and task bar icons differ for SWT applications

XMLWordPrintable

    • 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

            vbaranovsunw Vyacheslav Baranov (Inactive)
            jleesunw Jon Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: