Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to display the array output in the jTextArea?

 
devashish ttripathi
Greenhorn
Posts: 5
  • 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
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thankyou michael.u solved a very important problem for me.thankyou so muchh.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic