if (!isEditingGraph && graphPane.getGraphicManager().getSelectedGraphics().size() == 1) {
ColorLayerUI layer = ColorLayerUI.createTransparentLayerUI(graphPane.getJComponent());
final ArrayList<DragGraphic> list = new ArrayList<>();
list.add(graphic);
JDialog dialog = new MeasureDialog(graphPane, list);
<BUG>ColorLayerUI.showCenterScreen(dialog, layer);
}</BUG>
}
}
return Boolean.TRUE;

if (!isEditingGraph && graphPane.getGraphicManager().getSelectedGraphics().size() == 1) {
ColorLayerUI layer = ColorLayerUI.createTransparentLayerUI(graphPane.getJComponent());
final ArrayList<DragGraphic> list = new ArrayList<>();
list.add(graphic);
JDialog dialog = new MeasureDialog(graphPane, list);
ColorLayerUI.showCenterScreen(dialog, layer);
return null;
}
}
}
return Boolean.TRUE;
