Reputation: 11
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
Reputation: 91
Try passing a reference of the JTextarea in question to the output.java as a Constructor or method argument.
Upvotes: 1
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