public void execute() {
//Show interactive sparkline window:
SparklineParameters parameters = new SparklineParameters(200, 20, SparklineParameters.DEFAULT_LINE_COLOR, new Color(225, 255, 255), Color.RED, Color.GREEN);//Dimension is automatically updated by SparklineComponent
parameters.setHighlightTextColor(SparklineParameters.DEFAULT_TEXT_COLOR);
parameters.setHighlightTextBoxColor(SparklineParameters.DEFAULT_TEXT_BOX_COLOR);
SparklineComponent sparklineUI = new SparklineComponent(xValues, yValues, parameters, true);//True makes it interactive to mouse
sparklineUI.setPreferredSize(new Dimension(200, 20));//Initial size
//Using Netbeans RCP Dialogs API:
DialogDescriptor dd = new DialogDescriptor(sparklineUI, column.getTitle());
dd.setModal(false);
dd.setOptions(new Object[0]);//No buttons
DialogDisplayer.getDefault().createDialog(dd).setVisible(true);