¡@

Home 

java Programming Glossary: table.scrollrecttovisible

JTable model listener detects inserted rows too soon (before they are drawn)

http://stackoverflow.com/questions/14429242/jtable-model-listener-detects-inserted-rows-too-soon-before-they-are-drawn

.getRowCount 1 Rectangle r table.getCellRect last 0 true table.scrollRectToVisible r JButton btnAddRow new JButton Add Row btnAddRow.addMouseListener.. .getRowCount 1 Rectangle r table.getCellRect last 0 true table.scrollRectToVisible r Addendum I tried scrollRectToVisible in my SSCCE and it still.. .getRowCount 1 Rectangle r table.getCellRect last 0 true table.scrollRectToVisible r Addendum Here's a variation on your example that illustrates..

How to scroll to last row in a JTable

http://stackoverflow.com/questions/4890282/how-to-scroll-to-last-row-in-a-jtable

always go to the end of the table Here is part of my code table.scrollRectToVisible table.getCellRect table.getRowCount 1 0 true java swing scroll.. ActionListener public void actionPerformed ActionEvent e _table.scrollRectToVisible _table.getCellRect _table.getRowCount 1 0 true this.add b The.. public void componentResized ComponentEvent e _table.scrollRectToVisible _table.getCellRect _table.getRowCount 1 0 true share improve..

Scroll a JScrollPane to a specific row on a JTable [duplicate]

http://stackoverflow.com/questions/7052634/scroll-a-jscrollpane-to-a-specific-row-on-a-jtable

of the row. Edit Found this one liner which can do it table.scrollRectToVisible table.getCellRect row 0 true java swing jtable jscrollpane..

JTable Scrolling to a specified row index

http://stackoverflow.com/questions/853020/jtable-scrolling-to-a-specified-row-index

the view is 0 0 rect.setLocation rect.x pt.x rect.y pt.y table.scrollRectToVisible rect Scroll the area into view viewport.scrollRectToVisible..