DateGapAnalyzer dga = ajb.addRowProcessingAnalyzer(DateGapAnalyzer.class).getConfigurableBean();
dga.setFromColumn(orderDateColumn);
dga.setToColumn(shippedDateColumn);
dga.setGroupColumn(customerNumberAsStringColumn);
AnalysisResultFuture resultFuture = runner.run(ajb.toAnalysisJob());
if (resultFuture.isErrornous()) {
throw resultFuture.getErrors().get(0);
}
List<AnalyzerResult> list = Collections.emptyList();
RendererFactory rendererFactory = new RendererFactory(conf.getDescriptorProvider(), null);
DetailsResultWindow window = new DetailsResultWindow("Example", list, new DCWindowContext(conf,
UserPreferences.getInstance()), rendererFactory);
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
List<AnalyzerResult> results = resultFuture.getResults();
for (AnalyzerResult analyzerResult : results) {
JComponent renderedResult = new DateGapAnalyzerResultSwingRenderer()
.render((DateGapAnalyzerResult) analyzerResult);
window.addRenderedResult(renderedResult);
}