? 34537patch.patch Index: src/org/netbeans/modules/xml/tools/generator/Util.java =================================================================== RCS file: /cvs/xml/tools/src/org/netbeans/modules/xml/tools/generator/Util.java,v retrieving revision 1.6.74.1 diff -u -b -r1.6.74.1 Util.java --- src/org/netbeans/modules/xml/tools/generator/Util.java 25 Jun 2003 12:29:20 -0000 1.6.74.1 +++ src/org/netbeans/modules/xml/tools/generator/Util.java 10 Jul 2003 14:32:03 -0000 @@ -14,8 +14,7 @@ import java.awt.Font; import java.awt.FontMetrics; -import javax.swing.UIManager; -import javax.swing.JTable; +import javax.swing.*; import org.netbeans.modules.xml.core.lib.AbstractUtil; @@ -53,13 +52,7 @@ * Calculate JTable cell height for textual rows. */ public static int getTextCellHeight(JTable table) { - Font cellFont = UIManager.getFont("TextField.font"); // NOI18N - if (cellFont != null) { - FontMetrics fm = table.getFontMetrics(cellFont); - if (fm != null) { - return fm.getHeight() + 2; - } - } - return 16; + JComboBox template = new JComboBox(); + return template.getPreferredSize().height; } }