aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes unable to display the array output in the jTextArea? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "unable to display the array output in the jTextArea?" Watch "unable to display the array output in the jTextArea?" New topic
Author

unable to display the array output in the jTextArea?

devashish ttripathi
Greenhorn

Joined: Dec 08, 2012
Posts: 5
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

Joined: Jun 09, 2003
Posts: 4632
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

Joined: Dec 08, 2012
Posts: 5
thankyou michael.u solved a very important problem for me.thankyou so muchh.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: unable to display the array output in the jTextArea?