The Artima Developer Community
Sponsored Link

Java Answers Forum
JTable Question?

1 reply on 1 page. Most recent reply: May 9, 2003 1:08 AM by Alex S

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
shon

Posts: 42
Nickname: shon
Registered: Apr, 2003

JTable Question? Posted: May 8, 2003 8:08 AM
Reply to this message Reply
Advertisement
If I create A JTable on first ..
then I prompt user enter some data .. how to add
this data into the next row of the table??

JTable a = new JTable();
Data d = new Data();

how to add data into the Table ??
I would appreciate your help ... and thanks


Alex S

Posts: 27
Nickname: andu
Registered: Mar, 2003

Re: JTable Question? Posted: May 9, 2003 1:08 AM
Reply to this message Reply
A JTable component is using a TableModel object. Create a TableModel object and use it to add your data rows. Look for AbstractTableModel and DefaultTableModel classes in java doc and use them to create your on table model class by inheritance.

Flat View: This topic has 1 reply on 1 page
Topic: help! Previous Topic   Next Topic Topic: java awt problem

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use