//Why do I have to use following code to get a column number: ListSelectionModel ks = tabel.getColumnModel().getSelectionModel(); //Rowselection does not require a special row selection, I can get a proper row number with: ListSelectionModel ss = tabel.getSelectionModel();
Jump to Post
Remember that columns may be re-ordered relative to the underlying data model. Similarly rows can be sorted and/or filtered before display, in which case to get a row number that refers to the actual row in the data model you need the convertRowIndexToModel method.
Those extra levels of indirection and …
All 2 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.