public static void createForm() {
try {
TextDocument doc = TextDocument.newTextDocument();
Form form = doc.createForm("Test Form");
FormControl comboBox = form.createComboBox(doc, new FrameRectangle(
0.7972, 1.2862, 2.4441, 0.2669, SupportedLinearMeasure.IN),
"combo1", "dd", true);
String[] items = { "aa", "bb", "cc", "dd", "ee", "ff", "gg", "hh",
"ii", "jj" };
((ComboBox) comboBox).addItems(items);