Results 1 to 6 of 6

Thread: Rich TextBox

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    167

    Cool Rich TextBox

    In Java, is there any component that is similar to Rich TextBox in VB? Because I want to display text in multiple format.

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Rich TextBox

    There are the JEditorPane
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    167

    Question Re: Rich TextBox

    Are there any example about using JEditorPane?

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Rich TextBox

    You can save your formatted text as html and open it in JEditorPane.
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  5. #5
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Rich TextBox

    I don't have very good info about this subject but you can use the JTextPane and create your own style....I found out that most of Java styles are used to handle HTML not normal text...If you want to use normal text, you should search for a free package
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  6. #6
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: Rich TextBox

    The JTextPane allows you to use bold, italic, blah,blah, etc. styles of text. I've used it before, but it was A LONG time ago. I think you have to create some kind of document object to use in it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width