Page 7 of 34 FirstFirst ... 4567891017 ... LastLast
Results 61 to 70 of 335
  1. #61

    Default Re: Java Programming


    Quote Originally Posted by javapenguin
    I think it is better to use append method not setText

    textArea.append("the message to be appended");
    ^^^ Brillant idea. Javapenguin.

  2. #62

    Default Re: Java Programming

    try this...

    -------
    BufferedReader inputStream = null;
    inputStream = new BufferedReader(new FileReader(filename));

    String tmpStr = "";

    if (inputStream != null) {
    while((line = inputStream.readLine()) != null) {
    tmpStr += (line + "\n");
    }
    textArea.setText(line);
    }
    -----

  3. #63

    Default Re: Java Programming

    Quote Originally Posted by boxingfan529
    try this...

    -------
    BufferedReader inputStream = null;
    inputStream = new BufferedReader(new FileReader(filename));

    String tmpStr = "";

    if (inputStream != null) {
    while((line = inputStream.readLine()) != null) {
    tmpStr += line;
    }
    textArea.setText(line);
    }
    -----
    Nice ni ciya. From 1st data to last data sa file. Cge akong usbon ang code. Thanks to boxingfan529. :mrgreen:

  4. #64

    Default Re: Java Programming

    Quote Originally Posted by boxingfan529
    try this...

    -------
    BufferedReader inputStream = null;
    inputStream = new BufferedReader(new FileReader(filename));

    String tmpStr = "";

    if (inputStream != null) {
    while((line = inputStream.readLine()) != null) {
    tmpStr += (line + "\n");
    }
    textArea.setText(line);
    }
    -----
    I think it should be textArea.setText(tmpStr)

    not textArea.setText(line)

    since this is the target object in concatenation bcoz line holds the last read line.

  5. #65

    Default Re: Java Programming

    Quote Originally Posted by cen
    ^^^ Brillant idea. Javapenguin.
    Thanks cen

  6. #66

    Default Re: Java Programming

    Quote Originally Posted by javapenguin
    I think it should be textArea.setText(tmpStr)

    not textArea.setText(line)

    since this is the target object in concatenation bcoz line holds the last read line.
    heheh... edited na. Mao ni ang power sa OpenSource. Tinabangay.

  7. #67

    Default Re: Java Programming

    gud...

  8. #68

    Default Re: Java Programming

    tanx jud kay ninyo guys!! mah problem has been solved!!!!

  9. #69

    Default Re: Java Programming

    Quote Originally Posted by jerx d great
    tanx jud kay ninyo guys!! mah problem has been solved!!!!
    Your welcome bro.

  10. #70

    Default Re: Java Programming

    Quote Originally Posted by jerx d great
    tanx jud kay ninyo guys!! mah problem has been solved!!!!
    No problem

  11.    Advertisement

Page 7 of 34 FirstFirst ... 4567891017 ... LastLast

Similar Threads

 
  1. JAVA PROGRAMMING *****
    By bardnekom in forum Programming
    Replies: 20
    Last Post: 04-18-2013, 12:51 PM
  2. MOVED: JAVA PROGRAMMING *****
    By vern in forum Software & Games (Old)
    Replies: 0
    Last Post: 03-23-2008, 02:43 AM
  3. Java programming help pls...
    By mr_gwen in forum Programming
    Replies: 6
    Last Post: 11-03-2006, 12:30 AM
  4. nid help..java programming
    By ronninalpha in forum Programming
    Replies: 3
    Last Post: 09-13-2006, 07:55 PM
  5. MOVED: Java Programming
    By BadDudes in forum Software & Games (Old)
    Replies: 0
    Last Post: 04-28-2006, 12:04 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
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top