-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataDictionary.java
More file actions
43 lines (34 loc) · 951 Bytes
/
DataDictionary.java
File metadata and controls
43 lines (34 loc) · 951 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class DataDictionary extends JFrame implements ActionListener
{
private JTable table;
private String values[][];
private JButton ok;
private JButton save;
public DataDictionary(String v[][])
{
super("Data Dictionary");
Container c = getContentPane();
c.setLayout(new BorderLayout());
values = v;
String colHeads[] = {"Data Item","Comment"};
table = new JTable(values,colHeads);
JScrollPane jsp = new JScrollPane(table,
ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
c.add(jsp);
ok = new JButton(" OK ");
ok.addActionListener(this);
// c.add(ok);
save = new JButton("SAVE");
save.addActionListener(this);
// c.add(save);
setSize(300,500);
setVisible(true);
}
public void actionPerformed(ActionEvent ae)
{
}
}