}
int descDir = -1; // this description direction
ButtonGroup group = new ButtonGroup();
ImageIcon ii = createArrowIcon(new BasicStroke(1), 50, 20, descDir);
JRadioButtonMenuItem button = new JRadioButtonMenuItem(ii, !doArrowHead);
button.setActionCommand(String.valueOf(descDir));
group.add(button);
button.addActionListener(listener);
arrowheadMenu.add(button);
for (descDir = OMArrowHead.ARROWHEAD_DIRECTION_FORWARD; descDir <= OMArrowHead.ARROWHEAD_DIRECTION_BOTH; descDir++) {
ii = createArrowIcon(new BasicStroke(1), 50, 20, descDir);
button = new JRadioButtonMenuItem(ii, doArrowHead
&& currentDirection == descDir);
button.setActionCommand(String.valueOf(descDir));
group.add(button);
button.addActionListener(listener);