/**
* Handle a grid stroke selection.
*/
private void attemptGridStrokeSelection() {
StrokeChooserPanel panel = new StrokeChooserPanel(
null, this.availableStrokeSamples
);
int result = JOptionPane.showConfirmDialog(
this, panel, localizationResources.getString("Stroke_Selection"),
JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE
);
if (result == JOptionPane.OK_OPTION) {
this.gridStrokeSample.setStroke(panel.getSelectedStroke());
}
}