Hi, I am a beginner to JAVA. I have created a Jtable and added it to a JScrollpane. It is having 6 column headers.
I want to sort the contents of the table when we click on the column header.For that i want to know the event which is occurred on click.How can I know that on which column header the click is happened? What is the event that occurs on click on the column header?
The code written for creating the table is given below.