row heights

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

row heights

Mitch Skinner
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

DataSetViewerTablePanel.patch (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: row heights

Gerd Wagner
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



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Squirrel-sql-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/squirrel-sql-develop
Loading...