File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Empty Rows in a table 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 "Empty Rows in a table" Watch "Empty Rows in a table" New topic

Empty Rows in a table

Karen Davis

Joined: Mar 04, 2004
Posts: 8
Does anyone know if it is possible to add empty rows into a JTable, even if there is no data to display???
Eddie Vanda
Ranch Hand

Joined: Mar 18, 2003
Posts: 281
Hi Karen,
Not to a JTable, but you can to its model:


The nice thing about Standards is that there are so many to choose from!
I agree. Here's the link:
subject: Empty Rows in a table
Similar Threads
How can I force a <hx:dataTableEx to display n number of rows?
How to loop through data on a jsp form?
Colored Rows in Table
lack of exception
JTextArea insert problem