Normand Briere
2019-08-06 b3ae4e889872ca0b9ca76f1d17b2f0b961226729
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);
        }
}