File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes scroll bar issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "scroll bar issue" Watch "scroll bar issue" New topic

scroll bar issue

Rakesh Kumar
Ranch Hand

Joined: May 30, 2006
Posts: 63
Hello friends,
I am using jtable in scrollpane.I am adding rows in table and wheever we add a row , table will point last added row and scrollbar will go to last point.
i used below 2 ways to make i scrollbar down wheever a new row comes.
1. m_jTable.scrollRectToVisible(m_jTable.getCellRect(m_jTable.getRowCount(),2, false));

But it is working some times an other time it fails.
If you guys have any idea please share with me ASAP.

I agree. Here's the link:
subject: scroll bar issue
Similar Threads
How an I create a JButton in an JTable?
Editing the fields of the last row in JTable
scrollbar move to bottom
Is there any way to bring the a Vertical Scroll Bars of the Scroll Pane at the Bottom by default???
JTable and ScrollPane movement