Normand Briere
2019-02-22 611518a0ff65fd05e517d44adbcec639570b86eb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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);
        }
}