Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi....


i m new in swing i want to use table in my example but i can not got the difference between AbstractTableModel ,jtable and DefaultTable model ?

so please help me... i was saw oracle link but can not understand...
so can you give me some other idea or link
Posted

1 solution

you might want to read this:

The Java Tutorials - How to Use Tables[^]



The JTable is the graphical view on your table. You can fill it directly with Arrays of Strings - but that does not happen often. Normally you will need a TableModel - you should extend AbstractTableModel for that - which is the data representation for the table.

Follow the Tutorial and make yourself a "playground" beside the real project for that.
 
Share this answer
 
Comments
harsh25 shah 31-Jan-12 6:30am    
thanks for your comment but i was saw your link but also not understand properly
so what can i do sir...?
help me please....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900