Results 1 to 2 of 2
  1. #1
    warship is offline Member
    Join Date
    Jul 2007
    Posts
    9
    Rep Power
    0

    Default problems trying to view the contents of a text file in JTextArea

    hello.
    Iím having difficulty trying to view the contents of a text file in a JTextArea. when i run the following program, i press the View Order button (program and text file are in a .zip folder that was attached to this message). but no data from the Order.txt file is being displayed in the text area when it should be. what can i do to get rid of this problem?
    thank you very much for your help.
    Attached Files Attached Files

  2. #2
    oregon is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

    Default

    You are writing every time the content, you don't add new lines.
    I think that the last thing that it read is "\n" or some null string.
    check it out.
    Last edited by oregon; 07-19-2007 at 01:53 PM.

Similar Threads

  1. Replies: 17
    Last Post: 07-13-2009, 05:44 AM
  2. JTextArea - text align
    By bradder in forum AWT / Swing
    Replies: 1
    Last Post: 11-29-2007, 07:08 PM
  3. Replies: 0
    Last Post: 07-17-2007, 03:30 PM
  4. viewing the contents of a text file in JTextArea
    By warship in forum New To Java
    Replies: 0
    Last Post: 07-17-2007, 02:29 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
  •