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

JFileChooser file chooser details view "size" label cut off in Metal Look&Feel

XMLWordPrintable

    • b10
    • generic
    • windows_10

      ADDITIONAL SYSTEM INFORMATION :
      java version "19.0.2" 2023-01-17
      Java(TM) SE Runtime Environment (build 19.0.2+7-44)
      Java HotSpot(TM) 64-Bit Server VM (build 19.0.2+7-44, mixed mode, sharing)

      Windows 10, 225% screen scale

      A DESCRIPTION OF THE PROBLEM :
      According to 6371777 it is intentional that the "Size" label on the Metal JFileChooser with "details" view is right aligned, but on my system the right side is slightly chopped off when screen scale is 225% (I have not tried other scales). Image is available at <link>

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Set screen scale on Windows to 225%.
      Run code.
      Select details view on file chooser.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Expect some margin to the right of the "e" in "Size".
      ACTUAL -
      "e" on "Size" label is partly chopped off.

      ---------- BEGIN SOURCE ----------
      import javax.swing.*;

      public class JFileChooserBug19 {
         public static void main(String args[]) {
            SwingUtilities.invokeLater(()->new JFileChooser().showSaveDialog(null));
         }
      }
      ---------- END SOURCE ----------

      FREQUENCY : always


        1. capture.png
          capture.png
          69 kB
        2. JFileChooserBug19.java
          0.2 kB
        3. native.png
          native.png
          33 kB
        4. Scalling225.png
          Scalling225.png
          74 kB

            tr Tejesh R
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: