swing - Select single cell JTable with mouse (eclipse) -


i know how can select single cell jtable mouse , after keep value of cell in variable. thank

you can use mouselistener. read section swing tutorial on how write mouselistener more information , examples.

when click on cell need mouse point mouseevent , convert cell in table. can data table. basic code be:

int row = table.rowatpoint(...); int column = table.columnatpoint(...); object cellvalue = table.getvalueat(row, column); 

Comments

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -