Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

University of sindh Sindh Pakistan  RSS feed

 
nabi bux
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
welcome
to java I sugest you to book of Java swing
by oriely
Threre are tow fuction in Jtable class
add.row();
and removerow();
which yuou call in your interface
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JTable itself lacks methods like addRow or removeRow. If you are trying to add and remove rows, check out javax.swing.table.DefaultTableModel. And have you studied the tutorial:

http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!