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?
f.damati
0
Light Poster
Recommended Answers
Jump to PostUse JTextArea methods append(String str) or setText(String str). Nothing big.
Jump to PostThen show this piece of code where You created JTextArea and want to append some text.
Jump to PostI 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.
All 11 Replies
Zibo
2
Light Poster
f.damati
0
Light Poster
Zibo
2
Light Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
f.damati
0
Light Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
bluerose
0
Newbie Poster
BestJewSinceJC
700
Posting Maven
bluerose
0
Newbie Poster
f.damati
0
Light Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.