Solved

JTable setSelectedRow?

Posted on 2009-04-08
4
1,270 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

706 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now