File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to display the array output in the jTextArea?

 
devashish ttripathi
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
unable to display the array output in the jTextArea.....?
and in the label only the last element of array output is being displayed. Iam trying from a long time and unable to display output. please help if possible
here is the code snippet



 
Michael Dunn
Ranch Hand
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) you set the frame visible before adding any components
2) you have duplicate declarations of textInput
public JTextArea textInput;
then, in gui()
JTextArea textInput = new JTextArea();//this one should be just textInput = new JTextArea();
 
devashish ttripathi
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thankyou michael.u solved a very important problem for me.thankyou so muchh.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic