This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 63900

Summary: Fixed row height in the Commit dialog
Product: versioncontrol Reporter: Marian Petras <mpetras>
Component: CVSAssignee: issues@versioncontrol <issues>
Status: VERIFIED FIXED    
Severity: blocker Keywords: A11Y, SIMPLEFIX
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: screenshot

Description Marian Petras 2005-09-08 14:19:57 UTC
The table in the Commit dialog has fixed row height - it does not adapt to the
current font size.
Comment 1 Marian Petras 2005-09-08 14:21:19 UTC
Suggested fix:

        Component cellSample = new DefaultTableCellRenderer()
                               .getTableCellRendererComponent(
                                    theTable,       //table
                                    "N/A",          //value             //NOI18N
                                    false,          //isSelected
                                    false,          //hasFocus
                                    0, 0);          //row, column
        int cellHeight = cellSample.getPreferredSize().height;
        int rowHeight = cellHeight + resourcesTable.getRowMargin();
        theTable.setRowHeight(Math.max(16, rowHeight));
Comment 2 Marian Petras 2005-09-08 14:24:11 UTC
Created attachment 24630 [details]
screenshot
Comment 3 _ pkuzel 2005-12-21 14:25:12 UTC
FIXED

Checking in actions/commit/CommitTable.java;
/shared/data/ccvs/repository/javacvs/cvsmodule/src/org/netbeans/modules/versioning/system/cvss/ui/actions/commit/CommitTable.java,v
 <--  CommitTable.java
new revision: 1.13; previous revision: 1.12
done
Checking in syncview/SyncTable.java;
/shared/data/ccvs/repository/javacvs/cvsmodule/src/org/netbeans/modules/versioning/system/cvss/ui/syncview/SyncTable.java,v
 <--  SyncTable.java
new revision: 1.25; previous revision: 1.24
done
Comment 4 Marian Petras 2007-03-14 21:19:28 UTC
Verified in NB 6.0 M8.