String widthTxt = tileWidthCombo.getText();
String heightTxt = tileHeightCombo.getText();
if (!widthTxt.isEmpty() && !heightTxt.isEmpty()) {
dialog.setInitialTileSize(Integer.parseInt(widthTxt),Integer.parseInt(heightTxt));
}
dialog.open();
TileSet result = dialog.getResult();
if (result != null)
tilesetsField.addElement(result);
}