Skip to content

Commit 3884d73

Browse files
committed
first commit
1 parent 6461521 commit 3884d73

File tree

3 files changed

+50
-2
lines changed

3 files changed

+50
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package graphFrame;
2+
3+
import javax.swing.*;
4+
5+
import gray.Global;
6+
import red.Stock;
7+
8+
public class GraphFramePanel_Chart extends JPanel{
9+
Stock stock;
10+
11+
String[] column;
12+
String[][] data;
13+
14+
GraphFramePanel_Chart(){
15+
stock_price_graph();
16+
}
17+
18+
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package graphFrame;
2+
3+
import javax.swing.*;
4+
5+
public class GraphFramePanel_Mother extends JPanel{
6+
GraphFramePanel_Chart chart;
7+
8+
GraphFramePanel_Mother() {
9+
setLayout(null);
10+
11+
chart = new GraphFramePanel_Chart();
12+
chart.setBounds(0,0,200,100);
13+
14+
add(chart);
15+
}
16+
17+
}
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
package graphFrame;
2+
import javax.swing.*;
23

3-
public class GraphFrame_Mother {
4-
4+
public class GraphFrame_Mother extends JInternalFrame{
5+
GraphFramePanel_Mother motherpanel;
6+
7+
public GraphFrame_Mother() {
8+
super("Stock Data Graph", true, true, true, true);
9+
setSize(1100,600);
10+
setLocation(500,0);
11+
12+
motherpanel = new GraphFramePanel_Mother();
13+
add(motherpanel);
14+
15+
setVisible(true);
16+
}
517
}

0 commit comments

Comments
 (0)