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

HiDPI: awt.Choice looks improperly (Win 8)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 9
    • 9
    • client-libs
    • b131
    • windows_8

    Description

      Please run the following simple test code:

      import java.awt.*;
      import java.util.stream.Stream;

      public class ChoiceTest {

          private static void UI() {
              Frame frame = new Frame("Test frame");
              Choice choice = new Choice();
              Stream.of(new String[] {"item 1", "item 2", "item 3"}).forEach(choice::add);
              frame.add(choice);
              frame.setBounds(100, 100, 400, 200);
              frame.setVisible(true);
          }
          
          public static void main(String[] args) throws Exception { EventQueue.invokeAndWait(ChoiceTest::UI); }
      }

      Please compare screenshots:

      JDK9 b94 - ok.png
      current (3 Dec.) state of client repo build - nok.png (cannot see item text fully)

      please note also that the frame sizes differ.

      Windows 8 + HiDPI monitor

      Attachments

        1. nok.png
          nok.png
          8 kB
        2. ok.png
          ok.png
          5 kB

        Activity

          People

            rchamyal Rajeev Chamyal (Inactive)
            avstepan Alexander Stepanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: