Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Sienna Hughes   on Aug 31 In Java Category.

  
Question Answered By: Edna West   on Aug 31

Editing columns
javax.swing.table.DefaultTableModel
Override these methods
boolean isCellEditable(int row,int column);
int getColumnCount();
String getColumnName(int c);


For counting your rows  
javax.swing.JTable
use this method   int getRowCount()

if you want to add any components in to your cell like button or combobox or checkbox
javax.swing.table.TableCellRenderer

override its method

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on JTable Or get search suggestion and latest updates.


Tagged: