Hi Adam,
assuming you are programming a plugin, not a macro:
The only idea that comes into my mind is not very elegant, but it
should do what you want (I have not tried it, however). You could
create a mouse wheel event that scrolls up a very large distance
(999999 lines, or whatever you consider enough):
TextPanel textPanel = IJ.getTextPanel();
textPanel.mouseWheelMoved(new MouseWheelEvent(textPanel, 0, 0, 0, 0,
0, 0, false, MouseWheelEvent.WHEEL_UNIT_SCROLL, -999999, -999999);
Michael
________________________________________________________________
On 1 Dec 2009, at 06:27, Adam Cliffe wrote:
> Kind of a trivial macro writing problem....
>
> If there are say 100 results in the results table, running
> updateResults(); refreshes the results table but also scrolls the
> window down to the last entry.
> does anyone know an easy way to set the part of the results table
> shown in the window? (i.e. so the first result is visible).
>
> thanks
>
> Adam