Button repositioning in JScrollPane
Hi,
I have a problem with adding a button to a JScrollPane I have. What I'd like to do is to position it in a set location within the pane and then be able to scroll around and have the button move appropriately as I scroll. What happens now is that when I scroll, the button repositions (although it has some trouble with the repainting) to keep the same relative position it had before (50 pixels from the upper left corner).
Does anyone know how to solve this problem?
Thanks,
David