// Create a Dynamic Query Panel to interactively filter on the attribute values
DynamicQueryPanel dq = new DynamicQueryPanel(plot, filteredTable);
// Create a control panel for changing the visual settings of the plot
ScatterPlotVisualPanel panel = new ScatterPlotVisualPanel(plot, filter, dq);
// Create a pane showing the detailed values of the selected items
JComponent details = DetailTable.createDetailJTable(
filteredTable,
plot.getSelection());