Results 1 to 2 of 2
  1. #1
    johny2011 is offline Member
    Join Date
    Apr 2011
    Rep Power

    Default Showing normal text on screen

    Hi all,

    I want to see show text on screen. Tesxtfield and Textare is notideal for me, even if I set enabled false they seem like edit areas (as they are) and JLabel does not solve my problem because it can not show whole txt files.

    all I want to show some text on the screen (from a txt or rtf file) such as a Html page or PDF file, and user just see text on screen, not an text area wiht borders.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power


    So use a JTextComponent of your choice with setEditable(false) and setBorder(null)


Similar Threads

  1. Tooltip text showing through panel
    By Glovergg in forum AWT / Swing
    Replies: 2
    Last Post: 06-11-2010, 07:25 AM
  2. Is it normal to have these feelings?
    By Meta in forum New To Java
    Replies: 15
    Last Post: 05-03-2010, 09:20 AM
  3. Replies: 1
    Last Post: 04-26-2010, 01:02 PM
  4. Reading characters without showing up on the screen?
    By alexsb92 in forum New To Java
    Replies: 11
    Last Post: 03-28-2010, 08:08 PM
  5. Need Help showing text in JTextArea
    By GuyFawkes in forum AWT / Swing
    Replies: 3
    Last Post: 05-05-2008, 09:19 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