1
Personal Java/Jeode/J2ME Personal Profile / Personal Profile and setScrollPosition
« on: October 07, 2004, 09:01:51 am »
Anyone got any ideas on this. I have a ScrollPane with an image within it that I want to navigate to certain parts using controls outside of the scroll container e.g buttons etc.
Now heres the problem,
The minute I do any of the following :-
scrollPane.setScrollPosition(p0);
scrollPane.setScrollPosition(p0.x, p0.y);
scrollPane.getHAdjustable().setValue(p0.x);
The Z just goes crazy. scrolling the pane and repainting it constantly. I have put some debug statements in the paint method of the component and am confident it calls it and never returns as the Z seems to be in some endless loop.
The behaviour works correct on PersonalJava on a Sl5xxx, Pocket PC using Jeode and Pocket PC using Tao Intent (as well as J2SE). Any ideas would be greatly appreciated.
Regards
Gary
Now heres the problem,
The minute I do any of the following :-
scrollPane.setScrollPosition(p0);
scrollPane.setScrollPosition(p0.x, p0.y);
scrollPane.getHAdjustable().setValue(p0.x);
The Z just goes crazy. scrolling the pane and repainting it constantly. I have put some debug statements in the paint method of the component and am confident it calls it and never returns as the Z seems to be in some endless loop.
The behaviour works correct on PersonalJava on a Sl5xxx, Pocket PC using Jeode and Pocket PC using Tao Intent (as well as J2SE). Any ideas would be greatly appreciated.
Regards
Gary