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

HiDPI: awt.Choice looks improperly (Win 8)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b131
    • OS:
      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

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

              Dates

              Created:
              Updated:
              Resolved: