+ /* Create a flight object with handlers and
+ * appropriate UI items
+ */
+ item = new AltosEepromItem(flight);
+
+ /* Add a decriptive label for the flight */
+ c = new GridBagConstraints();
+ c.gridx = 0; c.gridy = itemNumber;
+ c.fill = GridBagConstraints.NONE;
+ c.weightx = 0.5;
+ c.anchor = GridBagConstraints.CENTER;
+ c.insets = i;
+ flightPane.add(item.label, c);
+
+ /* Add action checkbox for the flight */
+ c = new GridBagConstraints();
+ c.gridx = 1; c.gridy = itemNumber;
+ c.fill = GridBagConstraints.NONE;
+ c.weightx = 0.5;
+ c.anchor = GridBagConstraints.CENTER;
+ c.insets = i;
+ flightPane.add(item.action, c);
+
+ itemNumber++;