• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to make specific jtable column uneditable?  RSS feed

 
mahmoud saleh
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi there
i want to know how to make specific column in jtable uneditable?
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As with your recent post: What have you tried so far, and where are you stuck? If what you need is a code-writing service, you may look to rentacoder.com
[ September 07, 2008: Message edited by: pete stein ]
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For a JTable extension you can override the isCellEditable method to control editing in columns:

The TableModel classes also have an isCellEditable method you can override to return the desired result.
 
mahmoud saleh
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks,that's what i need
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!