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 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.
Jump to Postpost relevant code
Jump to PostWhere do instantiate the JTextArea? It should be somewhere were is "visible"(not out of scope) form your main. Also if you want it to be displayed you need to attach it to a JPanel, the JPanel to a JFrame and then you need to instantiate the JFrame and set 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.