-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvolatility_R_java_gui
More file actions
7383 lines (6445 loc) · 288 KB
/
Copy pathvolatility_R_java_gui
File metadata and controls
7383 lines (6445 loc) · 288 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package timeseranalysis;
import **
public class TSA extends javax.swing.JFrame {
int num=0;
double priceint[]=new double[num];
double priceintSPX[]=new double[1500];
double priceintOEX[]=new double[1500];
double priceintNDX[]=new double[1500];
double priceintNYA[]=new double[1500];
double priceintPTPX[]=new double[1500];
double priceintSML[]=new double[1500];
double priceintMID[]=new double[1500];
double priceintAMEX[]=new double[1500];
double priceintINDU[]=new double[1500];
String AMEXcsv= "d:/ParthaSen/Java R/AMEX.csv";
String SPXcsv= "d:/ParthaSen/Java R/SPX.csv";
String OEXcsv= "d:/ParthaSen/Java R/OEX.csv";
String NDXcsv= "d:/ParthaSen/Java R/NDX.csv";
String NYAcsv= "d:/ParthaSen/Java R/NYA.csv";
String PTPXcsv= "d:/ParthaSen/Java R/PTPX.csv";
String SMLcsv= "d:/ParthaSen/Java R/SML.csv";
String MIDcsv= "d:/ParthaSen/Java R/MID.csv";
String INDUcsv= "d:/ParthaSen/Java R/INDU.csv";
BufferedReader brAMEX = null;
BufferedReader brSPX = null;
BufferedReader brOEX =null;
BufferedReader brNYA =null;
BufferedReader brPTPX =null;
BufferedReader brSML = null;
BufferedReader brNDX = null;
BufferedReader brINDU = null;
BufferedReader brMID = null;
String line = "";
String []numbers = new String[30000];
public TSA() {initComponents();}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
buttonGroup1 = new javax.swing.ButtonGroup();
buttonGroup2 = new javax.swing.ButtonGroup();
jRadioButtonMenuItem1 = new javax.swing.JRadioButtonMenuItem();
jTabbedPane1 = new javax.swing.JTabbedPane();
jPanel1 = new javax.swing.JPanel();
jPanel2 = new javax.swing.JPanel();
jButton1 = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
IndexList = new javax.swing.JList();
textArea1 = new java.awt.TextArea();
textArea2 = new java.awt.TextArea();
jLabel4 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jScrollPane11 = new javax.swing.JScrollPane();
jTextArea6 = new javax.swing.JTextArea();
jPanel3 = new javax.swing.JPanel();
jPanel5 = new javax.swing.JPanel();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
jButton5 = new javax.swing.JButton();
jButton6 = new javax.swing.JButton();
jButton7 = new javax.swing.JButton();
jButton8 = new javax.swing.JButton();
jButton10 = new javax.swing.JButton();
jButton11 = new javax.swing.JButton();
jScrollPane2 = new javax.swing.JScrollPane();
jLabel5 = new javax.swing.JLabel();
jPanel6 = new javax.swing.JPanel();
jPanel9 = new javax.swing.JPanel();
jRadioButton13 = new javax.swing.JRadioButton();
jRadioButton14 = new javax.swing.JRadioButton();
jRadioButton15 = new javax.swing.JRadioButton();
jPanel11 = new javax.swing.JPanel();
jScrollPane4 = new javax.swing.JScrollPane();
jTextArea2 = new javax.swing.JTextArea();
jPanel10 = new javax.swing.JPanel();
jRadioButton16 = new javax.swing.JRadioButton();
jRadioButton17 = new javax.swing.JRadioButton();
jRadioButton18 = new javax.swing.JRadioButton();
jRadioButton19 = new javax.swing.JRadioButton();
jRadioButton20 = new javax.swing.JRadioButton();
jRadioButton21 = new javax.swing.JRadioButton();
jRadioButton22 = new javax.swing.JRadioButton();
jRadioButton23 = new javax.swing.JRadioButton();
jRadioButton24 = new javax.swing.JRadioButton();
jButton12 = new javax.swing.JButton();
jPanel12 = new javax.swing.JPanel();
jPanel15 = new javax.swing.JPanel();
jRadioButton42 = new javax.swing.JRadioButton();
jRadioButton41 = new javax.swing.JRadioButton();
jRadioButton40 = new javax.swing.JRadioButton();
jRadioButton39 = new javax.swing.JRadioButton();
jRadioButton38 = new javax.swing.JRadioButton();
jRadioButton37 = new javax.swing.JRadioButton();
jRadioButton36 = new javax.swing.JRadioButton();
jRadioButton35 = new javax.swing.JRadioButton();
jLabel2 = new javax.swing.JLabel();
jRadioButton34 = new javax.swing.JRadioButton();
jPanel16 = new javax.swing.JPanel();
jRadioButton25 = new javax.swing.JRadioButton();
jRadioButton26 = new javax.swing.JRadioButton();
jRadioButton27 = new javax.swing.JRadioButton();
jRadioButton28 = new javax.swing.JRadioButton();
jRadioButton29 = new javax.swing.JRadioButton();
jRadioButton30 = new javax.swing.JRadioButton();
jRadioButton31 = new javax.swing.JRadioButton();
jRadioButton32 = new javax.swing.JRadioButton();
jRadioButton33 = new javax.swing.JRadioButton();
jButton13 = new javax.swing.JButton();
jScrollPane5 = new javax.swing.JScrollPane();
jLabel3 = new javax.swing.JLabel();
jPanel18 = new javax.swing.JPanel();
jPanel19 = new javax.swing.JPanel();
jPanel21 = new javax.swing.JPanel();
jLabel8 = new javax.swing.JLabel();
jScrollPane7 = new javax.swing.JScrollPane();
jTextArea4 = new javax.swing.JTextArea();
jPanel20 = new javax.swing.JPanel();
jPanel22 = new javax.swing.JPanel();
jRadioButton43 = new javax.swing.JRadioButton();
jRadioButton44 = new javax.swing.JRadioButton();
jRadioButton45 = new javax.swing.JRadioButton();
jRadioButton46 = new javax.swing.JRadioButton();
jRadioButton47 = new javax.swing.JRadioButton();
jRadioButton48 = new javax.swing.JRadioButton();
jRadioButton49 = new javax.swing.JRadioButton();
jRadioButton50 = new javax.swing.JRadioButton();
jRadioButton51 = new javax.swing.JRadioButton();
jButton14 = new javax.swing.JButton();
jPanel23 = new javax.swing.JPanel();
jScrollPane8 = new javax.swing.JScrollPane();
jTextArea5 = new javax.swing.JTextArea();
jPanel7 = new javax.swing.JPanel();
jPanel8 = new javax.swing.JPanel();
jRadioButton1 = new javax.swing.JRadioButton();
jRadioButton2 = new javax.swing.JRadioButton();
jRadioButton3 = new javax.swing.JRadioButton();
jRadioButton4 = new javax.swing.JRadioButton();
jRadioButton5 = new javax.swing.JRadioButton();
jRadioButton6 = new javax.swing.JRadioButton();
jRadioButton7 = new javax.swing.JRadioButton();
jRadioButton8 = new javax.swing.JRadioButton();
jRadioButton9 = new javax.swing.JRadioButton();
jButton9 = new javax.swing.JButton();
jScrollPane3 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jRadioButton10 = new javax.swing.JRadioButton();
jRadioButton11 = new javax.swing.JRadioButton();
jRadioButton12 = new javax.swing.JRadioButton();
jPanel13 = new javax.swing.JPanel();
jScrollPane9 = new javax.swing.JScrollPane();
jLabel9 = new javax.swing.JLabel();
jPanel24 = new javax.swing.JPanel();
jButton15 = new javax.swing.JButton();
jPanel14 = new javax.swing.JPanel();
jScrollPane10 = new javax.swing.JScrollPane();
jLabel10 = new javax.swing.JLabel();
jButton16 = new javax.swing.JButton();
jButton17 = new javax.swing.JButton();
jRadioButtonMenuItem1.setSelected(true);
jRadioButtonMenuItem1.setText("jRadioButtonMenuItem1");
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jTabbedPane1.setBackground(new java.awt.Color(255, 255, 204));
jTabbedPane1.setForeground(new java.awt.Color(51, 0, 204));
jTabbedPane1.setFont(new java.awt.Font("Arial Black", 0, 10)); // NOI18N
jTabbedPane1.setPreferredSize(new java.awt.Dimension(636, 525));
jPanel1.setMaximumSize(new java.awt.Dimension(526, 300));
jPanel1.setPreferredSize(new java.awt.Dimension(526, 300));
jPanel2.setBackground(new java.awt.Color(204, 204, 255));
jPanel2.setForeground(new java.awt.Color(204, 204, 255));
jButton1.setBackground(new java.awt.Color(0, 204, 102));
jButton1.setFont(new java.awt.Font("Arial Narrow", 1, 8)); // NOI18N
jButton1.setForeground(new java.awt.Color(0, 153, 51));
jButton1.setText("OK");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jLabel1.setFont(new java.awt.Font("Arial Narrow", 1, 10)); // NOI18N
jLabel1.setText(" Upload the csv data set of above indices");
IndexList.setBackground(new java.awt.Color(255, 204, 204));
IndexList.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
IndexList.setModel(new javax.swing.AbstractListModel() {
String[] strings = { "NDX \t:NASDAQ 100 index", "INDU\t:Dow Jones Industrial Average", "MID\t:Standard & Poor Midcap 400 Index", "AMEX\t:American Stock Exchange", "SPX\t:Standard & Poor 500 Index", "OEX\t:Standard & Poor 100 Index", "NYA\t:New York Exchange Composite Index", "PTPX\t:Philadelphia US Top 100 Sector Index", "SML\t:Standard & PoorSmallcap 600 Index" };
public int getSize() { return strings.length; }
public Object getElementAt(int i) { return strings[i]; }
});
jScrollPane1.setViewportView(IndexList);
textArea1.setBackground(new java.awt.Color(255, 255, 255));
textArea1.setFont(new java.awt.Font("Book Antiqua", 1, 10)); // NOI18N
textArea1.setMaximumSize(new java.awt.Dimension(100, 80));
textArea2.setBackground(new java.awt.Color(255, 255, 255));
textArea2.setFont(new java.awt.Font("Book Antiqua", 1, 10)); // NOI18N
textArea2.setMaximumSize(new java.awt.Dimension(100, 80));
jLabel4.setText("Price at Start");
jLabel6.setText("Price at end");
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(textArea1, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(36, 36, 36)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel6)
.addComponent(textArea2, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(241, 241, 241))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
.addComponent(textArea1, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(textArea2, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel6)))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(14, 14, 14)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGap(97, 97, 97))
);
jTextArea6.setColumns(20);
jTextArea6.setRows(5);
jTextArea6.setText("1.Price Chart will show the prices of the indices for last 1500 days. \n2.Stationary Test tab will test help to testthe stationarity \nof the time series us8ing the ADF test method\n3. Spread is measured using the beta value. And then in the CoIntegration\ntab the cointegration value is measured and highest is considered for \nGARCH analysis\n4. Prediction price tab is useful to get the next 3 day's predicted prices.\n5. Volatility tab is helpful to get the 1 day ahead volatility prediction and \ncomparison with the indices.\n6. Backtesting is done in scenarios where last 250 is considered as out of sample\nand previous to that 1250 days data are in sample. Here RSI at 0.9 at upper\nlevel and 0.1 at lower level is considered for BUY and SELL point.");
jScrollPane11.setViewportView(jTextArea6);
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 573, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 587, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(24, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(30, Short.MAX_VALUE))
);
jTabbedPane1.addTab("Upload ", jPanel1);
jPanel3.setBackground(new java.awt.Color(255, 255, 204));
jButton2.setBackground(new java.awt.Color(204, 204, 255));
jButton2.setFont(new java.awt.Font("Arial", 1, 8)); // NOI18N
jButton2.setForeground(new java.awt.Color(0, 0, 255));
jButton2.setText("AMEX");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jButton3.setBackground(new java.awt.Color(204, 204, 255));
jButton3.setFont(new java.awt.Font("Arial", 1, 8)); // NOI18N
jButton3.setForeground(new java.awt.Color(0, 0, 255));
jButton3.setText("SPX");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
jButton4.setBackground(new java.awt.Color(204, 204, 255));
jButton4.setFont(new java.awt.Font("Arial", 1, 8)); // NOI18N
jButton4.setForeground(new java.awt.Color(0, 0, 255));
jButton4.setText("OEX");
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
});
jButton5.setBackground(new java.awt.Color(204, 204, 255));
jButton5.setFont(new java.awt.Font("Arial", 1, 8)); // NOI18N
jButton5.setForeground(new java.awt.Color(0, 0, 255));
jButton5.setText("NYA");
jButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton5ActionPerformed(evt);
}
});
jButton6.setBackground(new java.awt.Color(204, 204, 255));
jButton6.setFont(new java.awt.Font("Arial", 1, 8)); // NOI18N
jButton6.setForeground(new java.awt.Color(0, 0, 255));
jButton6.setText("PTPX");
jButton6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton6ActionPerformed(evt);
}
});
jButton7.setBackground(new java.awt.Color(204, 204, 255));
jButton7.setFont(new java.awt.Font("Arial", 0, 8)); // NOI18N
jButton7.setForeground(new java.awt.Color(0, 0, 255));
jButton7.setText("SML");
jButton7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton7ActionPerformed(evt);
}
});
jButton8.setBackground(new java.awt.Color(204, 204, 255));
jButton8.setFont(new java.awt.Font("Arial", 1, 8)); // NOI18N
jButton8.setForeground(new java.awt.Color(0, 0, 255));
jButton8.setText("NDX");
jButton8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton8ActionPerformed(evt);
}
});
jButton10.setBackground(new java.awt.Color(204, 204, 255));
jButton10.setFont(new java.awt.Font("Arial", 1, 8)); // NOI18N
jButton10.setForeground(new java.awt.Color(0, 0, 255));
jButton10.setText("MID");
jButton10.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton10ActionPerformed(evt);
}
});
jButton11.setBackground(new java.awt.Color(204, 204, 255));
jButton11.setFont(new java.awt.Font("Arial", 1, 8)); // NOI18N
jButton11.setForeground(new java.awt.Color(0, 0, 255));
jButton11.setText("INDU");
jButton11.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton11ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
jPanel5.setLayout(jPanel5Layout);
jPanel5Layout.setHorizontalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addComponent(jButton2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton5)
.addGap(2, 2, 2)
.addComponent(jButton6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton11)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton10))
);
jPanel5Layout.setVerticalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton2)
.addComponent(jButton3)
.addComponent(jButton4)
.addComponent(jButton5)
.addComponent(jButton6)
.addComponent(jButton7)
.addComponent(jButton8)
.addComponent(jButton10)
.addComponent(jButton11))
);
jScrollPane2.setBackground(new java.awt.Color(255, 255, 255));
jLabel5.setBackground(new java.awt.Color(255, 255, 255));
jLabel5.setForeground(new java.awt.Color(255, 255, 255));
jScrollPane2.setViewportView(jLabel5);
javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 570, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(41, Short.MAX_VALUE))
);
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 420, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(31, Short.MAX_VALUE))
);
jTabbedPane1.addTab("Price Chart", jPanel3);
buttonGroup2.add(jRadioButton13);
jRadioButton13.setText("Lag 1");
buttonGroup2.add(jRadioButton14);
jRadioButton14.setText("Lag 2");
buttonGroup2.add(jRadioButton15);
jRadioButton15.setText("Lag 3");
javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
jPanel9.setLayout(jPanel9Layout);
jPanel9Layout.setHorizontalGroup(
jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel9Layout.createSequentialGroup()
.addGap(64, 64, 64)
.addComponent(jRadioButton13)
.addGap(18, 18, 18)
.addComponent(jRadioButton14)
.addGap(18, 18, 18)
.addComponent(jRadioButton15)
.addContainerGap(34, Short.MAX_VALUE))
);
jPanel9Layout.setVerticalGroup(
jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel9Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jRadioButton13)
.addComponent(jRadioButton14)
.addComponent(jRadioButton15)))
);
jTextArea2.setColumns(20);
jTextArea2.setRows(5);
jScrollPane4.setViewportView(jTextArea2);
javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
jPanel11.setLayout(jPanel11Layout);
jPanel11Layout.setHorizontalGroup(
jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
.addContainerGap(32, Short.MAX_VALUE)
.addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 447, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27))
);
jPanel11Layout.setVerticalGroup(
jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel11Layout.createSequentialGroup()
.addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 372, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 16, Short.MAX_VALUE))
);
buttonGroup1.add(jRadioButton16);
jRadioButton16.setText("AMEX");
buttonGroup1.add(jRadioButton17);
jRadioButton17.setText("SPX");
buttonGroup1.add(jRadioButton18);
jRadioButton18.setText("OEX");
buttonGroup1.add(jRadioButton19);
jRadioButton19.setText("NYA");
buttonGroup1.add(jRadioButton20);
jRadioButton20.setText("PTPX");
buttonGroup1.add(jRadioButton21);
jRadioButton21.setText("SML");
buttonGroup1.add(jRadioButton22);
jRadioButton22.setText("NDX");
buttonGroup1.add(jRadioButton23);
jRadioButton23.setText("INDU");
buttonGroup1.add(jRadioButton24);
jRadioButton24.setText("MID");
jButton12.setBackground(new java.awt.Color(102, 102, 255));
jButton12.setFont(new java.awt.Font("Arial Black", 1, 10)); // NOI18N
jButton12.setForeground(new java.awt.Color(0, 0, 204));
jButton12.setText("OK");
jButton12.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton12ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
jPanel10.setLayout(jPanel10Layout);
jPanel10Layout.setHorizontalGroup(
jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel10Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton16)
.addComponent(jRadioButton17)
.addComponent(jRadioButton18)
.addComponent(jRadioButton19)
.addComponent(jRadioButton20)
.addComponent(jRadioButton21)
.addComponent(jRadioButton22)
.addComponent(jRadioButton23)
.addComponent(jRadioButton24))
.addContainerGap(10, Short.MAX_VALUE))
.addComponent(jButton12, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
jPanel10Layout.setVerticalGroup(
jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel10Layout.createSequentialGroup()
.addContainerGap(16, Short.MAX_VALUE)
.addComponent(jRadioButton16)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton17)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton18)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton19)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton20)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton21)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton22)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton23)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton24)
.addGap(18, 18, 18)
.addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(24, 24, 24))
);
javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
jPanel6.setLayout(jPanel6Layout);
jPanel6Layout.setHorizontalGroup(
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel6Layout.createSequentialGroup()
.addGap(14, 14, 14)
.addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(22, 22, 22))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(118, 118, 118))
);
jPanel6Layout.setVerticalGroup(
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel6Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel6Layout.createSequentialGroup()
.addGap(33, 33, 33)
.addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel6Layout.createSequentialGroup()
.addGap(18, 18, 18)
.addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(46, Short.MAX_VALUE))
);
jTabbedPane1.addTab("Stationary Test", jPanel6);
buttonGroup2.add(jRadioButton42);
jRadioButton42.setText("MID");
buttonGroup2.add(jRadioButton41);
jRadioButton41.setText("INDU");
buttonGroup2.add(jRadioButton40);
jRadioButton40.setText("NDX");
buttonGroup2.add(jRadioButton39);
jRadioButton39.setText("SML");
buttonGroup2.add(jRadioButton38);
jRadioButton38.setText("PTPX");
buttonGroup2.add(jRadioButton37);
jRadioButton37.setText("NYA");
buttonGroup2.add(jRadioButton36);
jRadioButton36.setText("OEX");
buttonGroup2.add(jRadioButton35);
jRadioButton35.setText("SPX");
jLabel2.setText("Index of my Choice");
buttonGroup2.add(jRadioButton34);
jRadioButton34.setText("AMEX");
javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
jPanel15.setLayout(jPanel15Layout);
jPanel15Layout.setHorizontalGroup(
jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel15Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jRadioButton34)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton35)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton36)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton37)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton38)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton39)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton40)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton41)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton42)
.addContainerGap())
);
jPanel15Layout.setVerticalGroup(
jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jRadioButton42)
.addComponent(jRadioButton41)
.addComponent(jRadioButton40)
.addComponent(jRadioButton39)
.addComponent(jRadioButton38)
.addComponent(jRadioButton37)
.addComponent(jRadioButton36)
.addComponent(jRadioButton35)
.addComponent(jRadioButton34)
.addComponent(jLabel2)))
);
buttonGroup1.add(jRadioButton25);
jRadioButton25.setText("AMEX");
buttonGroup1.add(jRadioButton26);
jRadioButton26.setText("SPX");
buttonGroup1.add(jRadioButton27);
jRadioButton27.setText("OEX");
buttonGroup1.add(jRadioButton28);
jRadioButton28.setText("NYA");
buttonGroup1.add(jRadioButton29);
jRadioButton29.setText("PTPX");
buttonGroup1.add(jRadioButton30);
jRadioButton30.setText("SML");
buttonGroup1.add(jRadioButton31);
jRadioButton31.setText("NDX");
buttonGroup1.add(jRadioButton32);
jRadioButton32.setText("INDU");
buttonGroup1.add(jRadioButton33);
jRadioButton33.setText("MID");
jButton13.setBackground(new java.awt.Color(51, 51, 255));
jButton13.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N
jButton13.setForeground(new java.awt.Color(51, 0, 204));
jButton13.setText("OK");
jButton13.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton13ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
jPanel16.setLayout(jPanel16Layout);
jPanel16Layout.setHorizontalGroup(
jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jRadioButton25, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jRadioButton26)
.addComponent(jRadioButton27)
.addComponent(jRadioButton28)
.addComponent(jRadioButton29)
.addComponent(jRadioButton30)
.addComponent(jRadioButton33)
.addComponent(jRadioButton31)
.addComponent(jRadioButton32, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
.addGroup(jPanel16Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jButton13, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel16Layout.setVerticalGroup(
jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel16Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jRadioButton25)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton26)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton27)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton28)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton29)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton30)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton31)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton32)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton33)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton13, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(102, 102, 102))
);
jScrollPane5.setViewportView(jLabel3);
javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
jPanel12.setLayout(jPanel12Layout);
jPanel12Layout.setHorizontalGroup(
jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel12Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel12Layout.createSequentialGroup()
.addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(40, 40, 40)
.addComponent(jScrollPane5)))
.addContainerGap())
);
jPanel12Layout.setVerticalGroup(
jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel12Layout.createSequentialGroup()
.addGap(5, 5, 5)
.addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(28, 28, 28)
.addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 352, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(0, 74, Short.MAX_VALUE))
);
jTabbedPane1.addTab("Spread", jPanel12);
jPanel18.setPreferredSize(new java.awt.Dimension(631, 525));
jLabel8.setText("HighestCoIntegrated pairs");
jTextArea4.setColumns(20);
jTextArea4.setRows(5);
jScrollPane7.setViewportView(jTextArea4);
javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);
jPanel21.setLayout(jPanel21Layout);
jPanel21Layout.setHorizontalGroup(
jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel21Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 48, Short.MAX_VALUE)
.addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 278, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(78, 78, 78))
);
jPanel21Layout.setVerticalGroup(
jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel21Layout.createSequentialGroup()
.addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 10, Short.MAX_VALUE))
.addGroup(jPanel21Layout.createSequentialGroup()
.addGap(19, 19, 19)
.addComponent(jLabel8)
.addContainerGap(20, Short.MAX_VALUE))
);
javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);
jPanel19.setLayout(jPanel19Layout);
jPanel19Layout.setHorizontalGroup(
jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 0, Short.MAX_VALUE)
.addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel19Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap()))
);
jPanel19Layout.setVerticalGroup(
jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 104, Short.MAX_VALUE)
.addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel19Layout.createSequentialGroup()
.addGap(25, 25, 25)
.addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(26, Short.MAX_VALUE)))
);
buttonGroup1.add(jRadioButton43);
jRadioButton43.setText("AMEX");
buttonGroup1.add(jRadioButton44);
jRadioButton44.setText("SPX");
buttonGroup1.add(jRadioButton45);
jRadioButton45.setText("OEX");
buttonGroup1.add(jRadioButton46);
jRadioButton46.setText("NYA");
buttonGroup1.add(jRadioButton47);
jRadioButton47.setText("PTPX");
buttonGroup1.add(jRadioButton48);
jRadioButton48.setText("SML");
buttonGroup1.add(jRadioButton49);
jRadioButton49.setText("NDX");
buttonGroup1.add(jRadioButton50);
jRadioButton50.setText("INDU");
buttonGroup1.add(jRadioButton51);
jRadioButton51.setText("MID");
jButton14.setBackground(new java.awt.Color(102, 102, 255));
jButton14.setFont(new java.awt.Font("Arial Black", 1, 10)); // NOI18N
jButton14.setForeground(new java.awt.Color(0, 0, 204));
jButton14.setText("OK");
jButton14.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton14ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22);
jPanel22.setLayout(jPanel22Layout);
jPanel22Layout.setHorizontalGroup(
jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel22Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton43)
.addComponent(jRadioButton44)
.addComponent(jRadioButton45)
.addComponent(jRadioButton46)
.addComponent(jRadioButton47)
.addComponent(jRadioButton48)
.addComponent(jRadioButton49)
.addComponent(jRadioButton50)
.addComponent(jRadioButton51))
.addContainerGap(10, Short.MAX_VALUE))
.addComponent(jButton14, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
jPanel22Layout.setVerticalGroup(
jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel22Layout.createSequentialGroup()
.addContainerGap(16, Short.MAX_VALUE)
.addComponent(jRadioButton43)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton44)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton45)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton46)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton47)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton48)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton49)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jRadioButton50)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton51)
.addGap(18, 18, 18)
.addComponent(jButton14, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(24, 24, 24))
);
javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);
jPanel20.setLayout(jPanel20Layout);
jPanel20Layout.setHorizontalGroup(
jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel20Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(21, Short.MAX_VALUE))
);
jPanel20Layout.setVerticalGroup(
jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel20Layout.createSequentialGroup()
.addComponent(jPanel22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 29, Short.MAX_VALUE))
);
jTextArea5.setColumns(20);
jTextArea5.setRows(5);
jScrollPane8.setViewportView(jTextArea5);
javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);
jPanel23.setLayout(jPanel23Layout);
jPanel23Layout.setHorizontalGroup(
jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 491, Short.MAX_VALUE)
);
jPanel23Layout.setVerticalGroup(
jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel23Layout.createSequentialGroup()
.addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 39, Short.MAX_VALUE))
);
javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);
jPanel18.setLayout(jPanel18Layout);
jPanel18Layout.setHorizontalGroup(
jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel18Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel18Layout.createSequentialGroup()
.addComponent(jPanel20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jPanel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addContainerGap())
);
jPanel18Layout.setVerticalGroup(
jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel18Layout.createSequentialGroup()
.addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jTabbedPane1.addTab("CoIntegration", jPanel18);
buttonGroup1.add(jRadioButton1);
jRadioButton1.setText("AMEX");
buttonGroup1.add(jRadioButton2);
jRadioButton2.setText("SPX");
buttonGroup1.add(jRadioButton3);
jRadioButton3.setText("OEX");
buttonGroup1.add(jRadioButton4);