• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable Problem

 
Mahendra Darwatkar
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !!
I am having problem in my applet. I am using one model for two tables. One table is having one column which is non scrollable and other all columns of model.
I am not able to stop cell editing of that one column. Can anybody help me out in this problem.
Mahendra
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This should have been posted in the Swing\AWT forum.
isCellEditable(int row, int column) from DefaultTableModel is the method you want. Just check the column and return false. But if both tables use this model they both would be set to non-editable. Use a different model.
 
Jane Griscti
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mahendra,
I'm going to move this over to the Swing/AWT forum. Applets and Swing are not on the SCJP exam, don't want to confuse people
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!