-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChart.java
More file actions
50 lines (36 loc) · 1018 Bytes
/
Chart.java
File metadata and controls
50 lines (36 loc) · 1018 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
44
45
46
47
package bootathonfinal;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class Chart {
Chart()
{
JFrame f=ObjectFile.getFrame("");
JButton b1=ObjectFile.getButton("Disease wise");
b1.setBounds(80, 100, 250, 40);
f.add(b1);
JButton b2=ObjectFile.getButton("District wise");
b2.setBounds(80,170, 250, 40);
b1.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
new Pie_Chart();
}
});
b2.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
new BarChart();
}
});
f.add(b2);
JPanel panel = ObjectFile.getpanel();
f.add(panel);
}
public static void main(String []args)
{
new Chart();
}
}