Thread: [Squirrel-sql-develop] row heights
A Java SQL client for any JDBC compliant database
Brought to you by:
colbell,
gerdwagner
From: Mitch S. <mi...@eg...> - 2005-09-24 04:09:37
Attachments:
DataSetViewerTablePanel.patch
|
Hello, I like to use large fonts, and whenever I do, the data in the dataset viewer gets too large for the row height. The attached small patch adds a line to the DataSetViewerTablePanel.MyJTable constructor that sets the row height based on the font. Regards, Mitch |
From: Gerd W. <bir...@t-...> - 2005-09-24 16:04:31
|
Hi Mitch, your patch is in CVS. Thanks a lot. Gerd Mitch Skinner schrieb: > Hello, > > I like to use large fonts, and whenever I do, the data in the dataset > viewer gets too large for the row height. The attached small patch adds > a line to the DataSetViewerTablePanel.MyJTable constructor that sets the > row height based on the font. > > Regards, > Mitch > > > ------------------------------------------------------------------------ > > Index: DataSetViewerTablePanel.java > =================================================================== > RCS file: /cvsroot/squirrel-sql/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/DataSetViewerTablePanel.java,v > retrieving revision 1.27 > diff -u -r1.27 DataSetViewerTablePanel.java > --- DataSetViewerTablePanel.java 4 Aug 2005 22:25:28 -0000 1.27 > +++ DataSetViewerTablePanel.java 24 Sep 2005 04:04:15 -0000 > @@ -171,6 +171,7 @@ > _typedModel = (MyTableModel) ((SortableTableModel) getModel()).getActualModel(); > _multiplier = > getFontMetrics(getFont()).stringWidth(data) / data.length(); > + setRowHeight(getFontMetrics(getFont()).getHeight()); > boolean allowUpdate = false; > // we want to allow editing of read-only tables on-demand, but > // it would be confusing to include the "Make Editable" option |