Skip to main content

JXTreeTable: setRowSelectionAllowed(true) has problems

2 replies [Last post]
siva
Offline
Joined: 2003-07-15

If I set the above for JXTreeTable, it appears that I have to move the cursor away to another cell from the tree node cell after it's either expanded/collapsed to collapse/expand it.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bino_george
Offline
Joined: 2003-06-16

Hi Siva,
I cant seem to reproduce this issue with a simple
FileSystemModel and default TreeSelectionModel Does it happen for you with FileSystemModel or your own models ? Thanks,

Regards,
Bino.

siva
Offline
Joined: 2003-07-15

Hi Bino, my app has a heavy customization of the JXTreeTable. So, as the default behavior seems to be fine, it took me quite some time to isolate the problem. I thought it was my code. But it turns out, that if I have

setDragEnabled(true);

then I have to have

setRowSelectionAllowed(false);

if the later is true along with the former, then I seem to get the issue that I was talking about. I tested this with the FileSystemModel.