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

[Test bug] Update FileDialogIconTest.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 20, 22, 23, 24
    • client-libs
    • None
    • x86
    • generic

      java/awt/Dialog/FileDialogIconTest/FileDialogIconTest.java sets the same image for Frame & Dialog .

      Step to reproduce
      ----------------------------
      1) Run java/awt/Dialog/FileDialogIconTest/FileDialogIconTest.java
      2) Click on setIconImageToFrame observe that loading-msg image is displayed 3) Click on setIconImageToDialog observe that same loading-msg image is displayed . It feels that new image for setIconImageToDialog is not applied to Dialog.

      After checking the test case found that the same image is used for both the buttons https://github.com/openjdk/jdk/blob/master/test/jdk/java/awt/Dialog/FileDialogIconTest/FileDialogIconTest.java#L107

      Note: Button setIconBufferedImagesToDialog & setIconBufferedImagesToFrame is defined and action listener is also defined but never used.
      https://github.com/openjdk/jdk/blob/master/test/jdk/java/awt/Dialog/FileDialogIconTest/FileDialogIconTest.java#L98-L99

            honkar Harshitha Onkar
            landrews Lawrence Andrews
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: