Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

JTable setSelectedRow?

Posted on 2009-04-08
4
Medium Priority
?
1,324 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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.
Suggested Courses

604 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