I have generated a dependency representation of given sentence using the following code.
SemanticGraph dependencies = sentence.get(CollapsedCCProcessedDependenciesAnnotation.class);
System.out.println(dependencies);
I am getting the desired output in the standard output window. Now I want to redirect this output into a JFrame form (NetBeans). Is it Possible? Which form can be used and What is the code? Please help