JDK-4587721 : JFileChooser details view chops off text
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2001-12-10
  • Updated: 2002-04-27
  • Resolved: 2002-04-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.1 hopperFixed
Related Reports
Relates :  
Description

Name: jk109818			Date: 12/10/2001


java version "1.4.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b84)
Java HotSpot(TM) Client VM (build 1.4.0-beta3-b84, mixed mode)

The JFileChooser details view does not consider the font size in
determining row height, for both Metal and Windows L&Fs. For large
fonts, the text will be chopped off and unreadable. On my system,
the top of the file icon is chopped off at any font size.
Example code follows.


   import javax.swing.*;
   import java.util.Enumeration;
   import java.awt.Font;
   import javax.swing.plaf.FontUIResource;

   public class JFileChooserBug {
   
      public static void main(String args[]) {
         setFonts();
         JFileChooser fc = new JFileChooser();
         fc.showOpenDialog(null);
      }
   
      public static void setFonts() {
         UIDefaults defaults = UIManager.getDefaults();
         Enumeration keys = defaults.keys();
         while(keys.hasMoreElements()) {
            Object key = keys.nextElement();
            if(defaults.get(key) instanceof Font)
               UIManager.put(key, new FontUIResource(new Font("Courier",
Font.BOLD, 30)));
         }
      }
   }
(Review ID: 136635) 
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: hopper FIXED IN: hopper INTEGRATED IN: hopper
24-08-2004

EVALUATION Should fix for next release. ###@###.### 2002-04-05
05-04-2002