• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable.getValueAt(i, 0) is null when the cell its a JeditorPane

 
Gamboa Tosca
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! i'm using a JEditorPane and JscrollPane as a cell renderer in my table (so i can control color, font, size and links easily). And its work good..but the problem is that i cant reach the content of the cell or the column "Descripcion" with :


Or:


the problem is that lines always return "null"Here is my tableCellrender and tablecellEditor code..



And...


Problemas Columna Descripcion.png
[Thumbnail for Problemas Columna Descripcion.png]
 
Mahesh Kedari
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check for the value at model level.


if you are getting a proper value with this, them most probably you might have overridden getValueAt() method for your JTable somewhere.
 
m Korbel
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.but the problem is that i cant reach the content of the cell or the column "Descripcion" with :

- for better help sooner post an SSCCE short, runnable, compilable with hardcoded value for XxxTableModel
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!