How can I access and use text from Feature InfoTool dialog. I'm working with JMapFrame. I found this snippet:
InfoTool tool = new InfoTool() {
@Override
public void onReporterUpdated() {
String text = getTextReporterConnection().getText();
System.out.println(text);
}
};
but I don't see how to link this to my JMapFrame. So basically I don't know how to get InfoTool from JMapFrame.