aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Table cells value changing on double click Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Table cells value changing on double click" Watch "Table cells value changing on double click" New topic
Author

Table cells value changing on double click

Bill White
Ranch Hand

Joined: Oct 27, 2002
Posts: 82
I have asked this question before. What I have is a class that I have written that hold some data.
I place objects of this class in the first column of each row so when I double click on a row I have easy access to a particular piece of info about that row.
However, when I double click on the cell that has my object in it. The type gets changed from CellValue (The name of my class) to String.
Is there a way I can stop this particular behavior?
Thank you.
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
If you are just using that column for reference, set editing to false.
Bill White
Ranch Hand

Joined: Oct 27, 2002
Posts: 82
I dont see where you can do that.
Bill White
Ranch Hand

Joined: Oct 27, 2002
Posts: 82
I figured a way around the problem. I put my class that is holding the data I am worried about in another column and hid it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Table cells value changing on double click
 
Similar Threads
TableModels value getting changed
disable previous JFrame upon new JFrame popup
JTable's Cell Text append Problem
JTable Cell Editor
Selecting a particular row in <table> tag used.