Results 1 to 2 of 2
Thread: Select a row in a table
- 03-25-2012, 01:03 PM #1
Member
- Join Date
- Feb 2012
- Location
- Norway
- Posts
- 96
- Rep Power
- 0
- 03-26-2012, 05:47 AM #2
Re: Select a row in a table
There is a method in JTable by which you can access the selected row in the table. I don't remember it correctly but I think it is getSelectedRow() . If not then consider the J2SE Javadoc to get the method of JTable class.
You can also get the data for a particular cell intersected by a partucalar row and column indexes....
Build a habit to refer the Javadoc......
Similar Threads
-
Can you compare a list against a table, and see which items aren't in table?
By mydarkpassenger in forum JDBCReplies: 3Last Post: 02-23-2012, 09:30 AM -
How to embed HTML table in lotus notes tabbed table using java?
By mmsmohana in forum New To JavaReplies: 1Last Post: 09-27-2011, 06:06 AM -
java method to select from diffrent table
By waboke in forum New To JavaReplies: 2Last Post: 04-24-2010, 01:58 PM -
How to repaint.refresh the table (table model) with combo box selection envent
By man4ish in forum AWT / SwingReplies: 1Last Post: 01-08-2010, 06:19 AM -
How to retain value in struts 2 using <s:select></s:select> tag
By SaiPrasad@Sella in forum Web FrameworksReplies: 0Last Post: 02-09-2009, 07:23 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks