File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JTable not reflecting cell edit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable not reflecting cell edit" Watch "JTable not reflecting cell edit" New topic
Author

JTable not reflecting cell edit

Root Something
Greenhorn

Joined: May 19, 2012
Posts: 1
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

Joined: Jun 09, 2003
Posts: 4632
> ...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

Joined: May 03, 2008
Posts: 4572
    
    5

Congratulations Michael!





[Thumbnail for MD4000.png]


luck, db
There are no new questions, but there may be new answers.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> Congratulations Michael!

Thank you.

the 4000 club, hopefully a few of the posts were correct :-)
 
GeeCON Prague 2014
 
subject: JTable not reflecting cell edit