-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTrainChart.java
More file actions
43 lines (34 loc) · 990 Bytes
/
TrainChart.java
File metadata and controls
43 lines (34 loc) · 990 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
package railwayreservation;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JDialog;
import javax.swing.JTable;
import javax.swing.border.LineBorder;
import java.awt.Color;
import javax.swing.JList;
public class TrainChart extends JDialog implements ActionListener {
private JTable table;
int e=10;
public TrainChart() {
getContentPane().setLayout(null);
table = new JTable();
table.setFillsViewportHeight(true);
table.setColumnSelectionAllowed(true);
table.setCellSelectionEnabled(true);
table.setBorder(new LineBorder(new Color(0, 0, 0), 2));
table.setBounds(36, 63, 620, 453);
table.addRowSelectionInterval(0, 70);
getContentPane().add(table);
setSize(700,600);
setModal(true);
setVisible(true);
}
public static void main(String[] args) {
new TrainChart();
// TODO Auto-generated method stub
}
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
}
}