[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

JTable ?

Posted on 2002-04-27
1
Medium Priority
?
270 Views
Last Modified: 2010-03-31
Hi,
I have a JTable inside a JScrollPane. My JTable has hundres of rows.
Could annyone show me the code that let a specified row of JTable
appear in the viewport of the JScrollPane (that row is seen by user)
without scrolling the JScrollPane to find out the correct row (if I have
the index of the row )
Thankx,
Bye.
0
Comment
Question by:kianh
1 Comment
 
LVL 16

Accepted Solution

by:
heyhey_ earned 150 total points
ID: 6973452
try something like

table.scrollRectToVisible(table.getCellRect(row, 0, true));
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month17 days, 16 hours left to enroll

830 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