Normand Briere
2018-07-07 e416acb9b012b17d1efe49ad2199ea7132d874d1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package timeflow.app.ui;
 
import timeflow.app.*;
import timeflow.format.field.FieldFormatCatalog;
 
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
 
 
public class AddFieldPanel extends JPanel {
   public JTextField name=new JTextField(12);
   public JComboBox typeChoices=new JComboBox();
   public AddFieldPanel()
   {
       for (String choice: FieldFormatCatalog.classNames())
           typeChoices.addItem(choice);
       setLayout(new GridLayout(2,2));
       add(new JLabel("Field Name"));
       add(name);
       add(new JLabel("Field Type"));
       add(typeChoices);
   }
}