Trouble apending a textArea with the contents of a parameter
Hi all!!
I have a method
which does the following amongst other things:
Code Java:
for (Method m : mtd) { // introducing all methods in the array
if (!(m.getName().startsWith("test"))) { //
return("Object or Class does not contain such methods");
}else {
result = result + m.getName();
}
// more code here
return result;
Then I have a listener on a button and when clicked it is supposed to display the results on a textArea on a frame. The frame works fine and it outputs all correctly except the third line which I write below which gives me an error “cannot find symbol”.
Code Java:
ClassAnalyzer analyzer = new ClassAnalyzer(textField.getText());
textArea.append(analyzer.getClassMember()+ "\n"); // this works fine
textArea.append(analyzer.methodTester(mtd)); // this does not work
Can anyone please help me?
Thank you and best regards,
bluetxxth
Re: Trouble apending a textArea with the contents of a parameter
mtd doesn't seem to be within scope of that code.