• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic