Rich(er) Text Box alternatives?

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Rich(er) Text Box alternatives?

  1. #1
    Join Date
    Mar 2005

    Rich(er) Text Box alternatives?

    I'm scoping out a project which will demand some sort of enhanced text box.

    Most of the criteria can be satisfied with a Rich Text Box (Underlining, sub/super scripts, varying font size, etc.).

    But there are a couple of issues which will be a little more advanced (rollover pop-ups for certain words/symbols in the text box, possible multiple underlining, colored underlining, maybe something similar to the "bubble notes" that appear in the margins of some Word Processors, etc.).

    I've been unsuccessful in Google searches in this department, but:

    a.) Does such a Class already exist?
    b.) If not, how should I approach this? Would it be possible/feasible to overlay graphics onto a text box, or do I need to start this from scratch extending the Graphics class? That, obviously, seems like a lot more work after I implement the scrollbars, editing capabilities, etc.

    Any ideas?

    Thanks in advance.
    Last edited by pimpJ; 05-23-2008 at 02:04 PM.

  2. #2
    Join Date
    Dec 2004
    San Bernardino County, California
    Take a look at

    and especially the TextSamplerDemo.

    Most likely your needs will be met by using a JTextPane

  3. #3
    Join Date
    May 2007
    Nice articles.

Similar Threads

  1. Replies: 3
    Last Post: 05-10-2008, 07:04 PM
  2. Replies: 2
    Last Post: 04-05-2006, 01:17 PM
  3. Replies: 0
    Last Post: 06-07-2002, 06:31 PM
  4. Vertical Text in Text box
    By Javaid Ahmad in forum VB Classic
    Replies: 2
    Last Post: 08-30-2000, 08:02 PM
  5. Replies: 2
    Last Post: 05-18-2000, 05:08 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
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

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