I have a JTable with 10 lines. If I have several choices on JTable , how do I get the cell that is currently focused?
JTable
I tried using JTable getEditingColumn() and getEditingRow() , but they always return -1 during multiple selection.
getEditingColumn()
getEditingRow()
Teams
table.getSelectionModel().getLeadSelectionIndex(); table.getColumnModel().getSelectionModel().getLeadSelectionIndex();
enter row and column respectively.
Source: https://habr.com/ru/post/651036/More articles:Why doesn't Maven download jar files, but does plugins load fine? - javaWhat is the Java Category as indicated in the eclipse window? - javaWhy doesn't ASP.NET MVC 3 check my floats correctly? - asp.netgetting width of div element - cssHow to use svn on real apache server? - svnHow to use gvim for svn commit messages under Windows? - windowsUpgrading an ASP.NET MVC2 Project to MVC3 and Using Mixed View Engines - asp.net-mvcWhy does Joda change PM in my input string to AM? - javaRetrieving data from a server without increasing session timeout - asp.netIteration through boost :: dynamic_bitset - c ++All Articles