Results 1 to 2 of 2
  1. #1
    D-Technodude is offline Member
    Join Date
    Nov 2010
    Posts
    5
    Rep Power
    0

    Question Change font every other sentence.

    I have a program that I'm making that requires the text color to change every other line in a JTextArea. How would I do this? Can I do this with a JTextArea?

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default

    The place to see what a JTextArea will do is its API documentation. (first sentence)

    For a description of the alternatives try Using Text Components in Oracle's Tutorial as well as the sections on each of those components.

Similar Threads

  1. Change JTextField Font?
    By Krooger in forum AWT / Swing
    Replies: 2
    Last Post: 03-25-2010, 06:50 PM
  2. Change the Font Size and Text Position
    By stayfierce in forum New To Java
    Replies: 1
    Last Post: 12-03-2009, 06:17 AM
  3. Replies: 5
    Last Post: 04-25-2009, 09:00 PM
  4. Replies: 4
    Last Post: 02-22-2009, 07:31 AM
  5. How to change The Font
    By kader in forum New To Java
    Replies: 2
    Last Post: 09-15-2008, 05:09 AM

Posting Permissions

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