Custom scrolling like page flipping

Please advise

I need to show a web page (text and images). But the scrolling must be implemented like a flipping of page (text changes entirely on the panel, not as scrolling) by pressing a button. if text doesn't fit it will be showed on the next page.

How to implement such behaviour, which components more convenient to use , using swing.

Thanks.

[376 byte] By [slaksa] at [2007-11-26 16:08:45]
# 1

2 ideas for you

1. You could use my StandardPrint class which you should be able to find searching here or on google. With StandardPrint you could use the preview method to get a preview of all your pages and just show one at a time

2. Assuming you're using a textarea or something in a scrollpane, you figure out the dimensions of the textarea, find out the size of the viewable rectangle, and call scrollbar.setBlockIncrement / setUnitIncrement to be the size of your viewport

tjacobs01a at 2007-7-8 22:31:04 > top of Java-index,Desktop,Core GUI APIs...
# 2
I thought about the first option, but i need fully controlled pages not an image of them...
slaksa at 2007-7-8 22:31:04 > top of Java-index,Desktop,Core GUI APIs...