Skip to content

Commit 5171fb4

Browse files
committed
Synchronizing method must be found.
1 parent ce7ec71 commit 5171fb4

File tree

16 files changed

+622
-17
lines changed

16 files changed

+622
-17
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[[{"location":"C:\\Program Files\\Java\\jre1.8.0_144","type":"JRE","hints":{"EXECUTION_ENVIRONMENT":"JavaSE-1.8"}},"jre:jre:1.8.0"]]
1+
[[{"location":"C:\\Program Files\\Java\\jre1.8.0_144","type":"JRE","hints":{"EXECUTION_ENVIRONMENT":"JavaSE-1.8"}},"jre:jre:1.8.0"],[{"location":"E:\\Programming\\School\\JAVA_Application_Project\\Java_Course_Project\\Statistical_Analysis","type":"PROJECT","hints":{"PROJECT_NAME":"Statistical_Analysis"}},"ABSENT"]]

Statistical_Analysis/.classpath

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
44
<classpathentry kind="src" path="src"/>
55
<classpathentry kind="src" path="GUISource"/>
6+
<classpathentry kind="src" path="Global_Region"/>
67
<classpathentry kind="lib" path="E:/Programming/School/JAVA_Application_Project/commons-math3-3.6.1/commons-math3-3.6.1.jar" sourcepath="E:/Programming/School/JAVA_Application_Project/commons-math3-3.6.1/commons-math3-3.6.1-sources.jar">
78
<attributes>
89
<attribute name="javadoc_location" value="jar:file:/E:/Programming/School/JAVA_Application_Project/commons-math3-3.6.1/commons-math3-3.6.1-javadoc.jar!/"/>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package controlsFrame;
2+
3+
public class ControlsFramePanel_Mother {
4+
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package controlsFrame;
2+
3+
public class ControlsFrame_Mother {
4+
5+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package gateFrame;
2+
3+
import java.awt.BorderLayout;
4+
import java.awt.Font;
5+
6+
import javax.swing.JLabel;
7+
import javax.swing.JPanel;
8+
9+
public class GateFramePanel_Intro extends JPanel{
10+
private JLabel introlabel = new JLabel("Stock Analyzer");
11+
12+
private BorderLayout layout = new BorderLayout();
13+
private Font font = new Font("font", Font.PLAIN|Font.BOLD, 25);
14+
15+
GateFramePanel_Intro() {
16+
setLayout(layout);
17+
18+
introlabel.setFont(font);
19+
add(introlabel);
20+
}
21+
22+
}

Statistical_Analysis/GUISource/gateFrame/GateFramePanel_Mother.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
public class GateFramePanel_Mother extends JPanel implements Runnable{
77
GateFramePanel_AuthorInfo authorinfo = new GateFramePanel_AuthorInfo();
88
GateFramePanel_Time time = new GateFramePanel_Time();
9+
GateFramePanel_Intro intro = new GateFramePanel_Intro();
910

1011
GateFramePanel_Mother() {
1112
setLayout(null);
@@ -14,6 +15,8 @@ public class GateFramePanel_Mother extends JPanel implements Runnable{
1415
add(authorinfo);
1516
time.setBounds(0, 400, 100, 50);
1617
add(time);
18+
intro.setBounds(0, 20, 200, 50);
19+
add(intro);
1720

1821
setVisible(true);
1922
}
Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,40 @@
11
package generalInfoFrame;
2+
import red.*;
3+
4+
import java.awt.GridLayout;
5+
import java.text.SimpleDateFormat;
6+
import java.util.Date;
7+
import java.util.Timer;
8+
import java.util.TimerTask;
9+
210
import javax.swing.*;
311

4-
public class GeneralInfoFramePanel_Basics extends JPanel{
12+
import gray.Global;
513

14+
public class GeneralInfoFramePanel_Basics extends JPanel{
15+
public Stock stock;
16+
17+
JLabel stockname;
18+
JLabel stocksymbol;
19+
JLabel IPO_year;
20+
21+
JLabel availabledatasize;
22+
23+
GridLayout layout = new GridLayout();
24+
25+
GeneralInfoFramePanel_Basics() {
26+
stock = new Stock(Global.SYMBOL);
27+
28+
layout.setColumns(1);
29+
layout.setRows(4);
30+
setLayout(layout);
31+
32+
stockname = new JLabel("Stock Name : " + stock.BasicInfo.StockName);
33+
stocksymbol = new JLabel("Stock Symbol : " + stock.SYMBOL);
34+
IPO_year = new JLabel("Date of the IPO : " + stock.Date.get(stock.Date.size() - 1));
35+
availabledatasize = new JLabel("Available data size : " + stock.Avail_Size);
36+
37+
add(stockname); add(stocksymbol); add(IPO_year); add(availabledatasize);
38+
39+
}
640
}
Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
11
package generalInfoFrame;
2+
import java.awt.GridLayout;
3+
import java.awt.event.ActionEvent;
4+
import java.awt.event.ActionListener;
5+
26
import javax.swing.*;
37

4-
public class GeneralInfoFramePanel_Controls extends JPanel{
8+
import gray.Global;
59

10+
public class GeneralInfoFramePanel_Controls extends JPanel implements ActionListener{
11+
JLabel symboltolookfor = new JLabel("Find by Symbol : ");
12+
JTextField symbolfield = new JTextField();
13+
JButton updatebutton = new JButton("Search!");
14+
15+
GridLayout layout = new GridLayout();
16+
GeneralInfoFramePanel_Controls() {
17+
layout.setColumns(2);
18+
layout.setRows(2);
19+
setLayout(layout);
20+
21+
updatebutton.addActionListener(this);
22+
23+
add(symboltolookfor); add(symbolfield);
24+
add(updatebutton);
25+
}
26+
27+
@Override
28+
public void actionPerformed(ActionEvent e) {
29+
String symbol_to_read = symbolfield.getText().toUpperCase();
30+
Global.SYMBOL = symbol_to_read;
31+
}
632
}

Statistical_Analysis/GUISource/generalInfoFrame/GeneralInfoFramePanel_Mother.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,18 @@ public class GeneralInfoFramePanel_Mother extends JPanel {
66
GeneralInfoFramePanel_Controls controls;
77
GeneralInfoFramePanel_LatestData latest;
88
GeneralInfoFramePanel_PriceChart pricechart;
9-
9+
10+
GeneralInfoFramePanel_Mother() {
11+
setLayout(null);
12+
13+
basics = new GeneralInfoFramePanel_Basics();
14+
basics.setBounds(0, 0, 200, 100);
15+
16+
controls = new GeneralInfoFramePanel_Controls();
17+
controls.setBounds(300, 0, 200, 50);
18+
19+
20+
add(basics);
21+
add(controls);
22+
}
1023
}

0 commit comments

Comments
 (0)