Solved

JTable setSelectedRow?

Posted on 2009-04-08
4
1,279 Views
Last Modified: 2012-05-06
I have a table where I call it's getSelectedRow() to see which row that is selected. I how ever want to be able to set it myself sometimes. How do I do that? There is no setSelectedRow (at least not in 1.4.2 as I am using.
0
Comment
Question by:mdoland
  • 2
  • 2
4 Comments
 
LVL 1

Expert Comment

by:isarasoo
ID: 24097406
Not sure exactly , but have you tried -- setEditingRow(int aRow)
0
 

Author Comment

by:mdoland
ID: 24097556
No, It don't seem to work
0
 
LVL 1

Accepted Solution

by:
isarasoo earned 500 total points
ID: 24097699
The following should work setRowSelectionInterval(0, 0)

change (0,0) to whichever row you want
0
 

Author Closing Comment

by:mdoland
ID: 31568040
Awesome!!
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
simple java question 3 55
Apps blocked by Java 9 79
hibernate insert example 13 28
Chrome and Firefox Java 5 30
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question