user328678
user328678

Reputation: 11

java program doubt

i have created a input form using Netbeans IDE containing a button and a Textarea. if i click a button it should call output.java program where the main part of execution resides and it should display the output in the TextArea created in the input.java. Am not getting the output in TextArea..the reason is my output.java program cudnt identify the textarea. but am getting output in window output console.please help me overcome this problem.thanks in advance

Upvotes: 1

Views: 242

Answers (2)

Desper
Desper

Reputation: 91

Try passing a reference of the JTextarea in question to the output.java as a Constructor or method argument.

Upvotes: 1

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798526

That's because you're doing it all wrong. The textarea is in a different process so you need to capture the output of the other program yourself.

Upvotes: 2

Related Questions