JTable Selection
Hi, I'm trying to write a simple hex editor program and I figured the best way to display the data would be using a JTable. The issue that I have comes when I try to select some range of data. As of now, I have it so that if you clicked on cell (2,2) and dragged down to cell (4,4) the selected result is a rectangle with the corners at (2,2), (2,4), (4,2) and (4,4). Instead I would like it so that it more like a text editor. So if you were to click in the middle of line 5 and drag down three lines, you'd select everything to the right of the starting position on line 5, all of lines 6 and 7 and everything to the left of the ending position on line 8.
My question is: is there some selection model that will assist me in this, or am I going to have to manually write something to facilitate this?
I apologize if this issue has been addressed in the past, but I was unable to find anything when I searched. If you could, please post a link to where it has be discussed previously.
Thanks,
Deepak

