Thanks John,
It works and I did it like this:
You implement a ComponentListener, create the JScrollPane of the JTable and the method componentResized of the ComponentListener does the trick.
jscrollpane= new JScrollPane(jtable);
jscrollpane.addComponentListener(this);
public void componentResized(ComponentEvent e) {
jtable.scrollRectToVisible(jtable.getCellRect(jtable.getSelectedRow(), 1 ,true));
}
[ March 10, 2003: Message edited by: Charles Dupin ]