File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JTable is not inserting the data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable is not inserting the data" Watch "JTable is not inserting the data" New topic
Author

JTable is not inserting the data

Maheswaran Devaraj
Ranch Hand

Joined: Sep 14, 2007
Posts: 47
Hi All,

I tried to insert to the value into the JTable, But I couldn't do it, Help me to resolve this.




Thanks and Regards,
Mahes
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

Maheswaran Devaraj wrote:

The return of that method determines how many rows will be displayed. You will need to return something other than 0.
If you want to be able to add data, an Object[][] is a bad idea. A List<Object[]> will be a better idea; it will allow you to add rows (being Object[] instances). Also, use the fireXXX methods of AbstractTableModel after something has changed in your model, or you won't see the changes.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTable is not inserting the data
 
Similar Threads
JRadioButton in JTable
JScrollPane within JTable cell issue
JTable inside JScrollPane - background coloring problem
Reg Appending new row to already existing JTable
JCheckBox in JTable