Joseph Michael wrote:Looking for a standalone swing program UI to accept input in text box and print the values like in the web...
posted 1 month ago
Yes, Carey Brown...Want to do the exact logic in java...Want to convert it to java and display the values in text box with any Standalone UI - swing
posted 4 weeks ago
There is bound to be a mathematical theory about paper folding. If you have a 32‑page booklet, that could be one sheet folded 4×4 but some pages will be reversed and some inverted by the folding process. Do some searching for pages and printing and bookbinding.
Campbell Ritchie wrote:There is bound to be a mathematical theory about paper folding.
Evidently there is, as the web sites referrred to by the OP use that theory. It should not be too hard to reverse-engineer that theory by trying various inputs to either of them and observing the changes in the output.
The double-sided printing sequence is just (back--), (front++), (front++), (back--) until back <= front
That is, assuming you have a multiple of 4 pages (and if not, you need to add empty pages to make it so) and page numbers go from 1..N where N is a multiple of 4, the sequence is N, 1, 2, N-1, N-2, 3, 4, N-3, N-4, 5, 6, N-5, N-6, 7, 8, N-7, N-8, 9, 10, ...
For single-sided printing, you just divide the sequence into pairs and use every other pair to print the first side, turn that pile over and use all the other pairs to print the second side.
The best ideas are the crazy ones. If you have a crazy idea and it works, it's really valuable.—Kent Beck
Campbell Ritchie wrote:There is bound to be a mathematical theory about paper folding. If you have a 32‑page booklet, that could be one sheet folded 4×4 but some pages will be reversed and some inverted by the folding process. Do some searching for pages and printing and bookbinding.
I think it comes under Topology. Likely a sub-topic (e. g., folding).
The fun part is that there are several different ways to print and fold a sheet of paper for bookbinding. You can see the popular ones in the dropdown list on the first link. it's actually not just a matter of page order, though, as some of the pages may have to be rendered upside down.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.
The world's cheapest jedi mind trick: "Aw c'mon, why not read this tiny ad?"
Try Free Java/.NET Libraries for Word Excel PowerPoint and PDF