•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 397,646 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,382 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 1756 | Replies: 3
![]() |
•
•
Join Date: Jun 2004
Posts: 604
Reputation:
Rep Power: 6
Solved Threads: 6
Hi everyone,
I have a jtextpane with some text which spans to about 10 pages and what i want to able to insert page numbers into the center bottom of the page. I am using the DefaultStyledDocument class as the default document type for my jtextpane.
I hope someone can explain to me or show me some codings that can help me to insert the page numbers into the jtextpane
Thank You
Yours Sincerely
Richard West
I have a jtextpane with some text which spans to about 10 pages and what i want to able to insert page numbers into the center bottom of the page. I am using the DefaultStyledDocument class as the default document type for my jtextpane.
I hope someone can explain to me or show me some codings that can help me to insert the page numbers into the jtextpane
Thank You
Yours Sincerely
Richard West
•
•
Join Date: Nov 2004
Location: Netherlands
Posts: 5,660
Reputation:
Rep Power: 18
Solved Threads: 192
You don't want the page numbers inserted into the text editor.
What will happen if you add or remove text? The numbers will now no longer be properly positioned, instead showing in the middle of the pages.
Instead you'd better customise your printing routine (I guess you want to print things?) to insert page numbers every X lines and a pagebreak directly after that.
What will happen if you add or remove text? The numbers will now no longer be properly positioned, instead showing in the middle of the pages.
Instead you'd better customise your printing routine (I guess you want to print things?) to insert page numbers every X lines and a pagebreak directly after that.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Java Marketplace
- book page text block detection? (not OCR problem) (C)
- No "insert page numbers" in MS Word (Mac Software)
- Help with input (C)
Other Threads in the Java Forum
- Previous Thread: GUI Interface
- Next Thread: Open Intenet Explorer in Swing application



Linear Mode