Inserting Page Numbers


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Inserting Page Numbers

  1. #1
    Join Date
    Oct 2004
    Posts
    151

    Question Inserting Page Numbers

    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

  2. #2
    Join Date
    Oct 2004
    Posts
    25
    Hi,

    you could extend DefaultStyledDocument and then do with insertString method all what you need

    Best Regards
    floaty

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center