JDK-4686138 : 1.4 REGRESSION: Letter like (y,g) truncated in TableCellEditor, char '_' not vsb
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2002-05-16
  • Updated: 2003-09-09
  • Resolved: 2003-09-09
Related Reports
Duplicate :  
Description

Name: rmT116609			Date: 05/16/2002


FULL PRODUCT VERSION :
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

FULL OPERATING SYSTEM VERSION :
Microsoft Windows 2000 [Version 5.00.2195]

A DESCRIPTION OF THE PROBLEM :
When I show a JTable with JTextFields and make on one of them a doubleclick,
then I can edit it, but in java version "1.4.0" the font in the TableCellEditor
is oversized. The bottom of some letters (like g,y) are truncated and when I write a underscore char I can't see it.

The Problem doesn't exist in java version "1.3.1_03".

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
To reproduce this bug:
1. Compile and run
http://java.sun.com/docs/books/tutorial/uiswing/components/example-swing/SimpleTableDemo.java
   
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
http://java.sun.com/docs/books/tutorial/uiswing/components/example-swing/SimpleTableDemo.java
---------- END SOURCE ----------

Release Regression From : 1.3.1_03
The above release value was the last known release where this 
bug was known to work. Since then there has been a regression.

(Review ID: 139828) 
======================================================================

Comments
EVALUATION JTable currently forces the row height to be 16, but this is often not enough to display various fonts. In particular the font height changed between 1.3 and 1.4 (4467709) so that there may not be enough space with a size of 16. In order to fix this BasicTableUI should install a different font height upon changing the font, and remove documentation indicating the default height is 16. As this may effect quite a few apps I am commiting this to tiger vs mantis. ###@###.### 2002-07-19 My initial evaluation was wrong. This was happening because we were getting the wrong fonts for table and textfields. As a result of the fix for 4419964 we are now picking up the right font, so that there isn't a problem with size anymore. ###@###.### 2003-09-09
09-09-2003

WORK AROUND Set the row height of the table to a larger value, perhaps 17. ###@###.### 2002-07-19
19-07-2002