Swing JEditorPane how to divide a html text in equals pages

Hi,
I want to load a html text from a file into a JEditorPane and divide its content in pages with the same number of lines. I want to create a look like in pdf or microsoft word. I found somewhere an example wich create the editor as I want but it is made using shapes and draw them.
The look is that that I want, but being shapes they aren't editable or selectable.
Can you give me any ideea how can I make this?
Thanks in advance!

You can use this
http://java-sl.com/Pagination_In_JEditorPane.html
And this
http://java-sl.com/JEditorPanePrinter.html
To see my attempts to achieve the behaviour
Regards,
Stas

Similar Messages

  • How do I turn off text box in pages?

    how do I turn off text box in pages?

    Thank you Peter and Jerry.
    Screen shot above. I know it's not much, but there it is.
    In actual fact I can make the text box bigger, but I just want to have the option of not having a text box.
    It should be simple, and not actually need a screen shot: just simple instructions. It seems pretty fundamental to me.  Does anyone know how to do this?
    Best, Angela

  • How to print a standard text of 3 pages in the script output?

    Hi all,
    I want to print a standard text as an include in the script output.
    But the standrad text is of 3 pages conataining continuous (some terms and condtitions) text.
    But while executing driver program, I am getting a STOP messgae pop-up saying 'Output is continuous or contains too many pages (>4)'.
    How to get the standard text of 3 pages in the output. The standard text is to be printed at the bottom of the output.
    Thanks,
    Sachin

    Hi ,
    To display standard texts you have to create a include in your script below is the syntax for that:
    INCLUDE name OBJECT name ID name PARAGRAPH name LANGUAGE   name
    Include command is used to include standard text in a form.the text 
    should be already defined by using transaction SO10.
    Here name is the name of text
    ID is used to classify text e.g. SDVD (SD related text) , ST (Standard text)
    OBJECT is used to specify type of object it an be TEXT , DOKU
    LANGUAGE is used to specify language like EN ,if ommited than logon
      language is used
    PARAGRAPH is used to specify the paragraph like C
    e.g. /:INCLUDE mytext OBJECT TEXT ID ST LANGUAGE EN
             Here the standard text created in SO10 with name mytext is
             included in the form in language EN (English)
    Please let me know if you have still any confusion.
    Thanks
    Narendra Vikram Vishwakarma

  • How can I change the text   color in pages

    Hi , how can I change the text color in pages app

    Select the text you want to change.
    Tap the i in the top bar.
    Tap Style in the top bar.
    Tap the Font name/size
    Tap Color then choose the color you want the text.

  • How do I turn selected text in a Pages document into two columns without turning the whole document into two columns?

    How do I turn selected text in a Pages document into two columns without turning the whole document into two columns?

    Menu > Insert > Layout Break (before and after text) > click in text > Inspector > Layout > Layout > columns: 2
    Peter

  • How do I highlight selected text in the Pages, Keynotes?

    How do I highlight selected text in the Pages, Keynotes?

    To answer your question foor your iOS Device using Pages or Keynote for iOS: You can't highlight as you might in many note taking apps for iPad, etc.
    The best you can do at this point is to change the selected text's color by selecting the text > Style Menu (wrench) > Tap on the Font > Tap on the Color Box to reveal choices.
    If you would like to join the chorus of folks wishing such a feature were in Pages and Keynote, you can leave feedback for the people at Apple:
    http://www.apple.com/feedback/

  • How to add a html region for all pages ?

    Hi,
    How do i put a html text box with submit (Search this site) and a "select list" on all pages in my application.
    Something similar to creating a list in shared components and then put that list on all pages.
    Thanks in advance,
    Girish

    Create a page number 0. Any components you put on Page 0 are rendered on all pages in the application (You can conditionally exclude them from certain pages using the appropriate condition on the component)

  • How to put image behind text on new pages?

    Hey I usually drag photos into my pages doc and then write text over them by selecting "place object in background" or whatever it was. I do that to make flyers and tourbooks. On the new pages it is not clear to me how to do this.

    Due the rewrite of Pages v5, about 100 features and functionality are missing from the prior release of Pages, the original that now resides in your /Applications/iWork '09 folder. My recommendation is to use the older, but more functional Pages ’09 v4.3.
    If you want text to flow over a background image in Pages v5, do the following:
    Under the Format panel Arrange tab, set Text Wrap to None.
    Drop your image in your document and position it where you want. Even opaquely over existing text.
    Menu > Arrange > Section Masters
    Select Move Object to Section Master
    Make Master Objects Selectable
    Immediately, your image is now in the background with yellow grips, and any existing text is above it. At any time, you can move or resize that image behind the text.
    Still suggest you retreat to the older Pages though.

  • How to put a footer text in every page of the application

    How to put footer text in every page of the application without putting it page by page.
    Thanks.
    Jen

    Patick,
    Thanks for your reply.
    I still don't know how to do it.
    1. Have a look at the documentation for Page 0.
    There is no Page 0 in my application
    2. You can add your custom stuff to your page templates.
    Could you give me more detail on this?
    Thanks,
    Jen

  • HT3384 How do you set the text layout in Pages on the vertical? How do you center the text?

    How do you align the text vertcially?

    Stru,
    You posted your question in the Pages (word processor) discussion area. Hope you can find your way back to Excel without any difficulty. The answer wouldn't have been much different had you posted in the Numbers discussion.
    Jerry

  • How can i display HTML text in a TextArea

    Hello All,
    We are developing a chat application using Java Swing and RMI with MySQL as backend.
    We have two options.The users can chat thro both browser and application(Swing GUI).
    Now when a user who chats thro a browser sends a message,the chat contents are stored in HTML format in the database (like <BR><font>R u There?</Font></BR>).When the other user happens to chat thro the application,the chat contents send by the other user has to appear in the HTML format in the TextArea of the application.So obviously the textarea shud understand the HTML and display it accordingly.
    How can i do this?Kindly give me an example with some code samples if i have to use EditorPane etc 'coz i haven't got any experience using EditorPanes.
    Thanks in advance
    Regards
    Vijayakannan

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test extends JFrame {
        public Test() {
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         Container content = getContentPane();
         JEditorPane jep = new JEditorPane("text/html",
                  "Joe: <font color=red>R u <b>There</b>?</Font><BR>"+
                  "Mary: <font color=green>Keep ur shorts on...</Font>");
         content.add(new JScrollPane(jep), BorderLayout.CENTER);
         setSize(200,200);
         show();
        public static void main(String[] args) { new Test(); }
    }

  • How to Remove Unwanted HTML Text Appearing in Compiled Help Topics

    I am working on a RoboHelp HTML project in version 7.03.001. Recently, when checking files into source control, the program we use informed me that two of my topics (htm files) and the index file (.hhk) were "conflicted."
    When I examine the compiled topics, I see a string of HTML code at the very top of the topics, above the topic titles. Here is an example:
    When I look at the HTML view, for the same topic, this is what I see:
    Temporarily removing this line of code did not resolve the issue. The unwanted text was still displayed after compiling.
    Another thing to mention is that several strange files also appeared in various project folders--files associated with the suspect topics and index:
    I don't know what these files are for or if they can be deleted. In addition, I generally don't do much work in the HTML code, so I was wondering if anyone might know what would cause this and also how it can be fixed.
    Thanks for your help!

    Those additional files look like revisions of the files that have the problem. If you open up the files that have a suffix of .mine, .r64214 and .r65414 do these have the same issue? if sounds like you have a source control file version issue here but it is hard to tell without some more detail. Hope this gives you some clues for things to look at but do come back if you need further help.
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

  • Flex Mobile 4.6 introduces Stage Text - how do you render HTML text with it?

    I have a little chat component in a Flex Mobile app that I just upgraded to SDK 4.6.  The chat component has a text area displaying messages and they are HTML formatted via the following:
    StyleableTextField(textArea).htmlText += myHTMLText;
    Worked in SDK 4.5 but StyleableTextField is not a part of the new Stage Text framework introduced in SDK 4.6.
    How do I HTML format the messages in my chat text area now?

    Thanks much for your response.
    Hmmm...  That appears to work but also causes a runtime exception where there was none before the 4.6 upgrade.  It occurs when I autoscroll on receiving a new message in the chat, something that worked fine in 4.5.
    I guess I'm kind of wondering what the best practice is here.  Maybe I'm just doing this wrong altogether.  I'm finding it very difficult to implement probably one of the most basic features one would find in any collaborative app - something that was very easy in Flex 3 - the chat pane.  I've had one functioning fine for about 3 years.  Not so much in Flex mobile.
    Chat is very simple functionality.  When you receive a new message from afar...
    1.  add it to a TextArea with some nice formatting
    2.  auto scroll far enough so the user can see the new message in its entirety. 
    Nothing difficult at all.
    Why are these two things difficult to find in the TextArea in Flex mobile?  It almost seems as though it's something we're not supposed to be doing? 
    The answer here seems to be don't use Stage Text.  Revert to an older TextArea skin.  Why?  What text area doesn't need formatting as an option?  What text area doesn't need to be auto scrolled here and there?  Or am I just going about this wrong?  Maybe using the wrong components?
    I guess for now I can revert to 4.5 skin, but now the code I used to auto scroll on receiving a new message throws a null pointer exception.  I've been using the valueCommit property to auto scroll, as follows:
    valueCommit="textArea.scroller.verticalScrollBar.value = textArea.scroller.verticalScrollBar.maximum"
    Haven't had a problem prevously.  But this now throws:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at com.components::ChatWindow/__textArea_valueCommit()
    What's the best practice to accomplish this and also to be able to take advantage of the latest and greatest?

  • How to add some html text between check boxes choices in SharePoint list?

    I'm customizing "New Form" of a share point list using SharePoint Designer.
    One of column is check boxes, and I need to add some break lines and text between choices, so the choice doesn't become cluttered.
    e.g.
    Choice 1 ^n
    Date
    Location
    Choice 2 ^n
    Date 
    Location
    and so on...
    Is that possible?
    Thanks 

    I think your best option would be using InfoPath if you can.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • How to load different html files in one page in order to load them without leaving the main stage?

    Hello,
    I'm new with edge animate, but i fell in love with it.
    I'd like to know, is it possible to load different html pages dynamically in the main stage in order to avoid the preloader to be load?
    I can figure out how to save all the pages of the site, but i can't merge them in a continuous animated browsing experience.
    As sample.
    I've got a index.html and home.html, how to switch form index to home without having a clear division between the two pages?
    I can place all the animations within a file and this will allow me to have a continuous surfing experience but it won't generate specific and google indexable pages within the site.
    Example, index.html will generate www.mysite.com, home will generate www.mysite.com/home. How ho switch dinamically between them and integrate them in a unique fading experience?
    Thanks in advance for any help. I'm a newby, but i would like to learn.
    Fea.

    Look into using the Loader class to load the swf files.  If you want to have it happen in different frames then you can put the code into the different frames.

Maybe you are looking for

  • Best way to view .pdf and .doc files on an iPhone

    thank you if you know and are willing to post - cheers

  • CD is stuck in disc drive!

    I have a MacBook Pro and I have a CD stuck. I have tried ... Restarting the MacBook while pressing the left mouse on the trackpad and it sounds like the cd is trying to eject but it does not. I have tried ... Going to the Utilities Folder then Termin

  • If RuneScape uses Java 3D why don't you need to install it?

    I was just wondering if RuneScape uses Java 3D, why doesn't anyone need to install it? Is it because the game is intirely server side and all the graphics and stuff is done over on their servers and not on your own computer? Thanks.

  • Special GL Items Clearing while Lockbox Processing

    Hi Friends, Is it possible that while lockbox payment is processed in SAP for customer it also takes into account the special GL items for that customer while clearing the open items. Example : Customer has two open items of 1000 each First Item is S

  • Getting java.lang.OutOfMemoryError: PermGen space

    Hi, In JCAPS5.1.1 after deploying my project, i am getting following error. #|2007-02-20T16:38:48.319+0530|SEVERE|IS5.1.1|STC.eWay.batch.com.stc.connector.batchadapter.system.BatchInboundWork|_ThreadID=50; ThreadName=Worker: 140;stacktrace-id=13;|Exc