Results 1 to 4 of 4
  1. #1
    Bagzli is offline Member
    Join Date
    Feb 2011
    Posts
    63
    Rep Power
    0

    Default Java Text EditorFunctionality

    Hello,

    I was wondering if I could get help in a matter I'm having difficulties in. Basically I have created a program that will display text depending on which index is selected. It all works fine, It saves and loads properly but there is one functionality I want to add to it and I don't know if it is possible or how it works.

    From what I noticed, a JTextArea works same as a .txt document, you can change font as you please but it affects whole document. What I want to do is be able to bold one line, underline the next, make font size of third line bigger, and so on. Just like you can do in a word document.

    I don't need it to be overly detailed but if i can get the bold, italic, underline, font size, font color and font type that would be more than I can hope for. So my question is, is there an object in java that supports this and if so how can I go about saving it?

    Regards,

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,037
    Rep Power
    10

    Default Re: Java Text EditorFunctionality

    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: Java Text EditorFunctionality

    Moved from Advanced Java. Nothing remotely advanced about the question either.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: Java Text EditorFunctionality

    The following was submitted by bagzli via the 'Report Post' feature:
    there no need to be jerk about moving a post, I clicked the wrong section by accident.
    Any further frivolous reporting may lead to a temporary or permanent ban. No additional warning will be issued.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 8
    Last Post: 07-17-2011, 03:38 PM
  2. Replies: 7
    Last Post: 03-05-2011, 10:25 AM
  3. Replies: 0
    Last Post: 12-09-2010, 06:56 PM
  4. Replies: 0
    Last Post: 09-28-2010, 10:52 AM
  5. Replies: 2
    Last Post: 01-23-2009, 05:09 PM

Posting Permissions

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