Hello
The task before me is to scroll a HUGE image, preferably using Swing. The image is going to be on the order of 100 pixels by 60,000 pixels. I don’t want to create an image that big or create a bunch of tiles that add up to it, but rather generate the visible portion of the image on the fly. Basically I want a JTable-like widget that only draws what is visible and scrolls quickly. In fact JTable would be useful if I could actually get cells that were 3 pixels by 3 pixels with absolutely no space between them. [ JTable.setIntercellSpacing( new Dimension( 0, 0 ) ) leads to intercell spacing of 2 pixels. perhaps I’m using that wrong. ]
I’m fairly confident I can do this with a custom Component wired to a JScrollbar through an AdjustmentListener. I had hoped to find examples somewhere that used JScrollPane and a custom widget, but nothing is coming up.
Any thoughts or pointers to examples appreciated.
- duncan