I have a JTable. Maximum row displayed only four, while the number of all rows of eight. I want when the program starts the table will directly lead to the last row.
here’s when the program is start :

I want to like this when program is start :

table directly leads to the last row
You need to get the cell bounds for the last row,
JTable#getCellRect(int, int, boolean)will return the rectangle bounds of a given cell, so something like;Should give you the location of the given cell.
Armed with this information, you simply need to call
JComponent#scrollRectToVisible(Rectangle)to request that the given rectangle is made visible.