Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable not reflecting cell edit

 
Root Something
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After I manually edit a cell of my JTable, the cell wont display the new text. Instead, the cell reverts back to its original text.

 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> ...Instead, the cell reverts back to its original text.

when:
after you click into another cell?
when the program re-opens?
some other time?

tip:
most here won't read more than 30 lines of code.
any more and the code must be compilable/runnable
so the problem can be seen on the screen (as most
descriptions of the problem/location are inaccurate).

if the compilable/runnable code is excessive, create
another .java file and strip everything unrelated to
the specific problem so the code is lean, then post that code.
 
Darryl Burke
Bartender
Posts: 5126
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations Michael!



MD4000.png
[Thumbnail for MD4000.png]
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> Congratulations Michael!

Thank you.

the 4000 club, hopefully a few of the posts were correct :-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic