好像没有最直接的办法,但可以这样:
先getRowCount() 
          Returns the number of rows in this table's model.
数出总记录数,然后changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend) 
Updates the selection models of the table, depending on the state of the two flags: toggle and extend.
改变焦点。

解决方案 »

  1.   

    jTable.setRowSelectionInterval(jTable.getRowCount(), jTable.getRowCount())就行了吧
      

  2.   

    疏忽了,应该是jTable.setRowSelectionInterval(jTable.getRowCount() -1, jTable.getRowCount() -1)就行了吧
      

  3.   

    jTable.setRowSelectionInterval(jTable.getRowCount() -1, jTable.getRowCount() -1)
    此方法的确可以将焦点总是指向最后一行,但屏幕总是显示第一页,
    有什么方法确保每逢一打开 JTable 屏幕,显示的就是 JTable 的最后一页.
    谢谢!!!
      

  4.   

    jTable.setRowSelectionInterval(jTable.getRowCount() -1, jTable.getRowCount() -1)
    此方法的确可以将焦点总是指向最后一行,但屏幕总是显示第一页,
    有什么方法确保每逢一打开 JTable 屏幕,显示的就是 JTable 的最后一页.
    谢谢!!!
      

  5.   

    你是要逆序吗?把JTable的数据来源处理一下吧。
      

  6.   

    不是逆序啊!因为 JTable 里面的数据很多,所以我要一打开 JTable 看里面的数据,就要看最近输入的数据。
    所以问有什么方法确保每逢一打开 JTable ,屏幕显示的就是 JTable 的最后一页的数据。
    敬请指教!!!
      

  7.   

    Point p = new Point();
    p.setLocation(0, jTable.getSelectedRow() *jTable.getRowHeight());
    jScrollPane.getViewport().setViewPosition(p);
    试试,jScrollPane是你jTable所在的滚动窗格