This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes row is selected just clicking on row of a table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "row is selected just clicking on row of a table" Watch "row is selected just clicking on row of a table" New topic
Author

row is selected just clicking on row of a table

arun singhal
Ranch Hand

Joined: Oct 25, 2009
Posts: 41
Clearly..
I have created a table have row and column...
I want that when i only click on any row of table then it print that row is selected..
As an example table have 10 rows.. and when I click on 2 row then it print that 2 row is selected...
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2152
    
    7
Use a MouseListener. Then use methods from the JTable to convert the mouse point to a row in the table.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: row is selected just clicking on row of a table
 
Similar Threads
Table distortion on form submission
Jtable cut and paste
Table row selection problem
get the selected row value from the icon which is within
How to select the row on right click.