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 - Fixed row height in the Commit dialog
Summary: Fixed row height in the Commit dialog
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords: A11Y, SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2005-09-08 14:19 UTC by Marian Petras
Modified: 2007-03-14 21:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (40.40 KB, image/png)
2005-09-08 14:24 UTC, Marian Petras
Details

Note You need to log in before you can comment on or make changes to this bug.
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.