List of usage examples for org.jfree.ui StrokeChooserPanel StrokeChooserPanel
public StrokeChooserPanel(StrokeSample current, StrokeSample[] available)
From source file:ch.zhaw.simulation.diagram.charteditor.DefaultNumberAxisEditor.java
/** * Handle a grid stroke selection.//w w w .j a v a2s . c om */ private void attemptGridStrokeSelection() { StrokeChooserPanel panel = new StrokeChooserPanel(this.gridStrokeSample, this.availableStrokeSamples); EditorDialog dlg = EditorDialog.create(this, localizationResources.getString("Stroke_Selection"), panel); if (dlg.display()) { this.gridStrokeSample.setStroke(panel.getSelectedStroke()); } }