Jtext area

Reply

Join Date: Apr 2007
Posts: 11
Reputation: f.damati is an unknown quantity at this point 
Solved Threads: 0
f.damati f.damati is offline Offline
Newbie Poster

Jtext area

 
0
  #1
May 25th, 2009
HI
I am working on a java application using netbeans,
I face a porblem.
I want to display the output of my program, on jtextarea
(i have designed a jtextarea,) just I want to display the output
namely the content of an array.
plz can anyone help?
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 34
Reputation: Zibo is an unknown quantity at this point 
Solved Threads: 3
Zibo's Avatar
Zibo Zibo is offline Offline
Light Poster

Re: Jtext area

 
0
  #2
May 25th, 2009
Use JTextArea methods append(String str) or setText(String str). Nothing big.
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 11
Reputation: f.damati is an unknown quantity at this point 
Solved Threads: 0
f.damati f.damati is offline Offline
Newbie Poster

Re: Jtext area

 
0
  #3
May 25th, 2009
I know the methods, but when i use them they throws java.lang.NullPointerException
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 34
Reputation: Zibo is an unknown quantity at this point 
Solved Threads: 3
Zibo's Avatar
Zibo Zibo is offline Offline
Light Poster

Re: Jtext area

 
0
  #4
May 25th, 2009
Then show this piece of code where You created JTextArea and want to append some text.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 2,105
Reputation: javaAddict is a splendid one to behold javaAddict is a splendid one to behold javaAddict is a splendid one to behold javaAddict is a splendid one to behold javaAddict is a splendid one to behold javaAddict is a splendid one to behold 
Solved Threads: 265
Featured Poster
javaAddict's Avatar
javaAddict javaAddict is offline Offline
Postaholic

Re: Jtext area

 
0
  #5
May 25th, 2009
Originally Posted by f.damati View Post
I know the methods, but when i use them they throws java.lang.NullPointerException
You get that exception because you haven't initialized the objects. You have create something with "new" in order to use it.
I murdered thousands for the Emperor and he gave me nothing except his damning silence. Now his lapdogs yap for every life I take, while the gods promise me the galaxy.
- Svane Vulfbad -
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 11
Reputation: f.damati is an unknown quantity at this point 
Solved Threads: 0
f.damati f.damati is offline Offline
Newbie Poster

Re: Jtext area

 
0
  #6
May 26th, 2009
thank you, i initialize an object but another problem appears which is the text area doesn't show anything it is empty
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 2,105
Reputation: javaAddict is a splendid one to behold javaAddict is a splendid one to behold javaAddict is a splendid one to behold javaAddict is a splendid one to behold javaAddict is a splendid one to behold javaAddict is a splendid one to behold 
Solved Threads: 265
Featured Poster
javaAddict's Avatar
javaAddict javaAddict is offline Offline
Postaholic

Re: Jtext area

 
0
  #7
May 26th, 2009
post relevant code
I murdered thousands for the Emperor and he gave me nothing except his damning silence. Now his lapdogs yap for every life I take, while the gods promise me the galaxy.
- Svane Vulfbad -
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 17
Reputation: bluerose is an unknown quantity at this point 
Solved Threads: 1
bluerose bluerose is offline Offline
Newbie Poster

Re: Jtext area

 
0
  #8
May 27th, 2009
Basically displaying text on jTextArea is not a difficult thing to do. Maybe there is a minute error to be fixed. Pls post your code so that we can check it!
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 2,227
Reputation: BestJewSinceJC is a splendid one to behold BestJewSinceJC is a splendid one to behold BestJewSinceJC is a splendid one to behold BestJewSinceJC is a splendid one to behold BestJewSinceJC is a splendid one to behold BestJewSinceJC is a splendid one to behold BestJewSinceJC is a splendid one to behold 
Solved Threads: 273
BestJewSinceJC BestJewSinceJC is offline Offline
Nearly a Posting Maven

Re: Jtext area

 
0
  #9
May 27th, 2009
@bluerose

I think javaAddict conveyed that same point with his post. Please don't repeat people for the sake of posting (unless you're adding something to the discussion), otherwise, you'll become like adatapost.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 17
Reputation: bluerose is an unknown quantity at this point 
Solved Threads: 1
bluerose bluerose is offline Offline
Newbie Poster

Re: Jtext area

 
0
  #10
May 27th, 2009
Sorry...thanx for reminding that. I posted that coz i missed that #7 post by javaAddict. I just noticed that when u said now. If i had seen that earlier i wouldn't have posted what i have posted. M not an echoer. However thx!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 684 | Replies: 11
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC