public void executeStarMakerDialog(){
short ok = m_xStarMakerDialog.execute();
if(ok == 1){
XControlContainer xControlContainer = (XControlContainer) UnoRuntime.queryInterface(XControlContainer.class, m_xStarMakerDialog);
XNumericField pointsField = (XNumericField) UnoRuntime.queryInterface(XNumericField.class, xControlContainer.getControl("PointsField"));
int numOfPoints = (int)pointsField.getValue();
XNumericField ratioField = (XNumericField) UnoRuntime.queryInterface(XNumericField.class, xControlContainer.getControl("RatioField"));
double ratio = ratioField.getValue() / 100;
XNumericField sizeField = (XNumericField) UnoRuntime.queryInterface(XNumericField.class, xControlContainer.getControl("SizeField"));
int size = (int)sizeField.getValue();
drawStar(numOfPoints, ratio, size);
}
}