Discussion:
Collumn lengths in a jTable
(too old to reply)
m***@gmail.com
2013-04-23 11:13:43 UTC
Permalink
I am displaying data from a mysql database in a jtable. I need to have the display have different column widths. For example the first column to have a size of 6 while the second has size 3. Is there a method i can do this conveniently?
John B. Matthews
2013-04-23 19:10:27 UTC
Permalink
Post by m***@gmail.com
I am displaying data from a mysql database in a jtable. I need to
have the display have different column widths. For example the first
column to have a size of 6 while the second has size 3. Is there a
method i can do this conveniently?
javax.swing.JTable

<http://docs.oracle.com/javase/tutorial/uiswing/components/table.html>

jQuery-jTable

<http://www.jtable.org/GettingStarted>
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
Arne Vajhøj
2013-04-23 22:35:53 UTC
Permalink
Post by m***@gmail.com
I am displaying data from a mysql database in a jtable. I need to
have the display have different column widths. For example the first
column to have a size of 6 while the second has size 3. Is there a
method i can do this conveniently?
Yes.

But are you asking how to get the field width from the table
definition?

(the UI is independent of the database)

Arne

Loading...