wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes jtable not displayed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "jtable not displayed" Watch "jtable not displayed" New topic
Author

jtable not displayed

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 246
hi

i tried to display data in a jtable

sometime i can have data to feed the jtable, sometime not

if i don't have data to feed table, i would like to have the column name displayed

my jtable class



my dataModel


my class test


i added

to the constructof of AttributeTableModel

do you think is better to do this or to do something like?



if i don't add any attribute to the arrayList, i see the column name.. but there are no row... ( i would like to see one row... user can begin to enter data)

if i pass some attribute to the arrayList, i see the data and column name

in both case, i don't know how to add a row

any idea?

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jtable not displayed
 
Similar Threads
Jtable Cell and ENTER key
JRadioButton in JTable
jtable
JScrollPane within JTable cell issue
display a checkbox in a table