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 out开发者_开发问答put.java program cudnt identify the textarea. but am getting output in window output console.please help me overcome this problem.thanks in advance
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.
Try passing a reference of the JTextarea in question to the output.java as a Constructor or method argument.
精彩评论