-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.java
More file actions
9511 lines (8686 loc) · 489 KB
/
MainWindow.java
File metadata and controls
9511 lines (8686 loc) · 489 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 DatcomEditor;
import java.awt.Color;
import java.io.BufferedReader;
import java.util.ArrayList;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFileChooser;
// these imports are for plotting and are to be removed for now
//import org.jfree.chart.ChartFactory;
//import org.jfree.chart.ChartFrame;
//import org.jfree.chart.JFreeChart;
//import org.jfree.chart.plot.CategoryPlot;
//import org.jfree.chart.plot.PlotOrientation;
//import org.jfree.data.category.DefaultCategoryDataset;
/**
*
* @author Gavin Feeney 2016-2017
*/
class Runner extends Thread {
String relativePath = "";
String folder = "";
@Override
public void run() {
ProcessBuilder builder = new ProcessBuilder("cmd.exe", "/c",
"start", folder + ".dcm");
builder.directory(new File(relativePath + "/" + folder));
//System.out.println("New Path is: " + builder.directory());
try {
Process p = builder.start();
} catch (IOException ex) {
Logger.getLogger(Runner.class.getName()).log(Level.SEVERE, null, ex);
}
}
}
public class MainWindow extends javax.swing.JFrame {
/**
* Creates new form MainWindow
*/
public MainWindow() {
initComponents();
initialisePanelStates();
initialiseFuselageData();
initialiseImportData();
initialiseProvisional();
initialiseSectionList();
initialiseSynthsLines();
hideMultiRun();
}
// Here goes the ArrayList initialisation for imported Data
static ArrayList importedData = new ArrayList();
// Here go all the ArrayList initialisations for fuselage input
ArrayList fuselageDistance = new ArrayList();
ArrayList fuselageRadius = new ArrayList();
ArrayList fuselageCircumference = new ArrayList();
ArrayList fuselageArea = new ArrayList();
ArrayList fuselageUpper = new ArrayList();
ArrayList fuselageLower = new ArrayList();
// Here goes the arraylist for the body lines
ArrayList bodyLines = new ArrayList();
// Here goes the arraylist for the wing lines for running
ArrayList wingLines = new ArrayList();
// Here goes the arraylist for the horz stab lines
ArrayList tailHorzLines = new ArrayList();
// Here goes the arraylist for the vert stab lines
ArrayList tailVertLines = new ArrayList();
// Here goes the arraylist for the first control surface data
ArrayList elevatorLines = new ArrayList();
// Here goes the arraylist for the second control surface data
ArrayList aileronLines = new ArrayList();
// Here goes the arraylist for the third control surface data
ArrayList flapLines = new ArrayList();
// Here goes the arraylist for the prop data
ArrayList propLines = new ArrayList();
// Here goes the arraylist for the fin data
ArrayList finLines = new ArrayList();
// Here goes the arraylist for the flight conditions data
ArrayList fltconLines = new ArrayList();
// Here goes the arraylist for the synths data
// Please note this arraylist is initialised with
ArrayList synthsLines = new ArrayList();
// Here goes the arraylist for holding the provisional inputs
ArrayList provDatcomData = new ArrayList();
// Here goes the string to send to inputreview class to display
static String inputReviewToSend = "";
// Here goes the arraylist to indicate which sections to include in dcm
ArrayList sectionList = new ArrayList();
ArrayList previousList = new ArrayList(); // for holding previous when switching body-only
// Here goes the arraylist for the final input to be turned into dcm
ArrayList finalDatcomData = new ArrayList();
// Here goes the 4 arrays for the 4 csv file sections
ArrayList csvBasic = new ArrayList();
ArrayList csvFlap = new ArrayList();
ArrayList csvAileron = new ArrayList();
ArrayList csvElevator = new ArrayList();
// Here go all the arraylists for plotting
// These were used for testing and probably no longer useful
static ArrayList alpha = new ArrayList();
static ArrayList CL_wbh = new ArrayList();
static ArrayList CLq_deg = new ArrayList();
static ArrayList CLadot_deg = new ArrayList();
static ArrayList CD_wbh = new ArrayList();
static ArrayList CYbeta_deg = new ArrayList();
static ArrayList CYp_deg = new ArrayList();
static ArrayList Clbeta_deg = new ArrayList();
static ArrayList Clp_deg = new ArrayList();
static ArrayList Clr_deg = new ArrayList();
static ArrayList CM_wbh = new ArrayList();
static ArrayList CMq_deg = new ArrayList();
static ArrayList CMadot_deg = new ArrayList();
static ArrayList CNbeta_deg = new ArrayList();
static ArrayList CNp_deg = new ArrayList();
static ArrayList CNr_deg = new ArrayList();
static ArrayList cgValues = new ArrayList();
// here go all the variable initialisations
final int zero = 0; // use for clarity only
int increments = 1; // global variable used for multiple analysis
static int engineID = 0; // for import
boolean currentSessionResults = false; // for output
int previousBodyIndex = 0; // for saving data to previous index
String lastAircraftName = "No last"; // initialised with a space as spaces removed from all generated names
// here goes the flag used for analysis whether multiple analysis or not
boolean flagMulti = false;
// here go all the non-listener method declarations for iteration
// creates a folder for multiple analysis
public static void createFolder(String path) {
File dir = new File(path);
dir.mkdir();
}
// creates dcm files in created folders
public static void createDatcomFiles(String path, String folderName, ArrayList data) {
try {
// create the datcom file first in the correct folder
File file = new File(path + "/" + folderName + "/" + folderName + ".dcm");
file.createNewFile();
FileWriter writer = new FileWriter(file);
for (int i = 0; i < data.size(); i++) {
writer.write((String) data.get(i) + "\n");
writer.flush();
}
writer.close();
// then create the .ini file in the same folder
File file2 = new File(path + "/" + folderName + "/" + "Datcom.ini");
file2.createNewFile();
FileWriter writer2 = new FileWriter(file2);
String xml1 = "[Outputs]";
String xml2 = "AC = Off";
String xml3 = "Display_AC = Off";
String xml4 = "AC3D_fuselage_lines = Off";
String xml5 = "Pause_At_End = Off";
String xml6 = "Matlab_3D = Off";
String xml7 = "JSBSim = Off";
String xml8 = "Airfoil = Off";
String xml9 = "Fuselage = Off";
String xml10 = "CSV = On";
String xml11 = "Old_CSV = On";
String xml12 = "Log = Off";
writer2.write(xml1 + "\n" + xml2 + "\n" + xml3 + "\n" + xml4 + "\n"
+ xml5 + "\n" + xml6 + "\n" + xml7 + "\n" + xml8 + "\n"
+ xml9 + "\n" + xml10 + "\n" + xml11 + "\n" + xml12);
writer2.flush();
writer2.close();
} catch (IOException ex) {
Logger.getLogger(ProjectCore.class.getName()).log(Level.SEVERE, null, ex);
}
}
// this method processes the old csv file output
// and returns an arraylist which has removed all empty lines
// and replaced the asterisks with 3 x's for easier management
private ArrayList readOldCSV(File results) throws FileNotFoundException, IOException {
ArrayList returnLines = new ArrayList();
FileReader fr = new FileReader(results);
BufferedReader br = new BufferedReader(fr);
String currentLine;
while ((currentLine = br.readLine()) != null) {
returnLines.add(currentLine);
//System.out.println(currentLine);
}
//System.out.println("End of bufferedreader reading");
fr.close();
br.close();
return returnLines;
}
// Attempts to extract data from imported .dcm file
// Not fully working currently, just testing
public static ArrayList readImport(File imported) throws FileNotFoundException, IOException {
ArrayList rawData = new ArrayList(); // raw input
FileReader fr = new FileReader(imported);
BufferedReader br = new BufferedReader(fr);
// collect all data in rawdata arraylist
String currentLine;
while ((currentLine = br.readLine()) != null) {
rawData.add(currentLine);
}
// delete lines that are pure comment or parts of lines that are comment
for (int i = 0; i < rawData.size(); i++) {
currentLine = rawData.get(i).toString();
if ((currentLine.contains("*"))) {
rawData.remove(i);
i--; // to make sure it doesn't skip a double comment
}
}
for (int i = 0; i < rawData.size(); i++) {
currentLine = rawData.get(i).toString();
if ((currentLine.contains("#"))) {
rawData.remove(i);
i--; // to make sure it doesn't skip a double comment
}
}
for (int i = 0; i < rawData.size(); i++) {
currentLine = rawData.get(i).toString();
if ((currentLine.contains("!"))) {
int index = currentLine.indexOf("!");
if (index > 0) {
currentLine = currentLine.substring(0, index);
rawData.set(i, currentLine);
} else if (index == 0) {
rawData.remove(i);
i--; // to make sure it doesn't skip a double comment
}
}
}
// close the readers
br.close();
fr.close();
// add everything to one string
String allText = "";
for (int i = 0; i < rawData.size(); i++) {
allText = allText + rawData.get(i);
}
// remove all white space
allText = allText.replaceAll("\\s+", "");
// then divide up into sections between the dollar signs
ArrayList sections = new ArrayList();
boolean flag = false;
int dollarIndex = 0;
int nextDollar = 0;
//int iteration = 1;
while (flag == false) {
dollarIndex = allText.indexOf("$", nextDollar); // first index
int start = dollarIndex + 1;
if (dollarIndex == -1) {
flag = true;
} else {
nextDollar = allText.indexOf("$", start);
String toAdd = allText.substring(start, nextDollar);
sections.add(toAdd);
nextDollar++;
}
//System.out.println("Iteration: " + iteration);
//iteration++;
}
// then find the airfoil codes if any
ArrayList airfoils = new ArrayList();
for (int i = 0; i < rawData.size(); i++) {
String line = rawData.get(i).toString();
if (line.contains("NACA")) {
airfoils.add(line);
// System.out.println("Line number " + i + ":" + line);
}
}
// then find engine code if any
String engine = "";
for (int i = 0; i < rawData.size(); i++) {
String line = rawData.get(i).toString();
if (line.contains("eng=")) {
engine = line;
}
}
// System.out.println("Engine line: " + engine);
String engineName = identifyEngine(engine);
// then add to appropriate strings
// need to initiliase as all will be checked later
String fltconData = "";
String bodyData = "";
String inertaData = "";
String optinsData = "";
String synthsData = "";
String wgplnfData = "";
String wgschrData = "";
String vtplnfData = "";
String htplnfData = "";
String symflp1Data = "";
String symflp2Data = "";
String asyflpData = "";
String jetpwr1Data = ""; // max 9 of these
String jetpwr2Data = "";
String jetpwr3Data = "";
String jetpwr4Data = "";
String jetpwr5Data = "";
String jetpwr6Data = "";
String jetpwr7Data = "";
String jetpwr8Data = "";
String jetpwr9Data = "";
for (int i = 0; i < sections.size(); i++) {
String contents = sections.get(i).toString();
if (contents.startsWith("FLTCON")) {
fltconData = contents;
}
if (contents.startsWith("INERTA")) {
inertaData = contents;
}
if (contents.startsWith("OPTINS")) {
optinsData = contents;
}
if (contents.startsWith("SYNTHS")) {
synthsData = contents;
}
if (contents.startsWith("BODY")) {
bodyData = contents;
}
if (contents.startsWith("WGPLNF")) {
wgplnfData = contents;
}
if (contents.startsWith("WGSCHR")) {
wgschrData = contents;
}
if (contents.startsWith("VTPLNF")) {
vtplnfData = contents;
}
if (contents.startsWith("HTPLNF")) {
htplnfData = contents;
}
if (contents.startsWith("SYMFLP")) {
// could have more than one
if (symflp1Data.length() < 1) {
symflp1Data = contents;
} else {
symflp2Data = contents;
}
}
if (contents.startsWith("ASYFLP")) {
asyflpData = contents;
}
if (contents.startsWith("JETPWR")) {
// can have up to 9
if (jetpwr1Data.length() < 1) {
jetpwr1Data = contents;
} else if (jetpwr2Data.length() < 1) {
jetpwr2Data = contents;
} else if (jetpwr3Data.length() < 1) {
jetpwr3Data = contents;
} else if (jetpwr4Data.length() < 1) {
jetpwr4Data = contents;
} else if (jetpwr5Data.length() < 1) {
jetpwr5Data = contents;
} else if (jetpwr6Data.length() < 1) {
jetpwr6Data = contents;
} else if (jetpwr7Data.length() < 1) {
jetpwr7Data = contents;
} else if (jetpwr8Data.length() < 1) {
jetpwr8Data = contents;
} else {
jetpwr9Data = contents;
}
}
}
// then fill up the input review string in preparation for review window
for (int i = 0; i < sections.size(); i++) {
inputReviewToSend = inputReviewToSend + (sections.get(i).toString() + "\n");
}
inputReviewToSend = inputReviewToSend + "Engine: " + engineName;
for (int i = 0; i < airfoils.size(); i++) {
inputReviewToSend = inputReviewToSend + "\nAirfoil: " + airfoils.get(i).toString();
}
// System.out.println(inputReviewToSend);
// then read the data, and add data to arraylists in correct places
// will probably create methods for this
// test print the sections data now
//for (int i = 0; i < sections.size(); i++) {
// System.out.println(sections.get(i));
//}
importedData.set(0, "Test Entry");
if (true == true) {
// System.out.println("Working");
return importedData;
} else {
return importedData;
}
}
// Add the imported data to the appropriate windows
// Not working currently, just testing
public static void displayImport(ArrayList data) {
//System.out.println(data.get(0));
}
// need to change to account for other files (is this even necessary???)
// used in the multiple analyses sample, probably not as useful as readimport
public static ArrayList readDCM(String path, String fileName) {
ArrayList sampleData = new ArrayList();
try {
String thisLine = "";
int count = 0;
BufferedReader br = new BufferedReader(new FileReader("sample737.dcm"));
while ((thisLine = br.readLine()) != null) {
sampleData.add(thisLine);
//System.out.println(count + " " + sampleData.get(count));
count++;
}
return sampleData;
} catch (FileNotFoundException ex) {
Logger.getLogger(ProjectCore.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(ProjectCore.class.getName()).log(Level.SEVERE, null, ex);
} finally {
return sampleData;
}
}
// reads from the csv file datcom creates
// stopgap measure, will be replaced by readOutput later
public static void readCSV(String path, String folderName) {
try {
FileReader reader = new FileReader(path + "/" + folderName + "/" + folderName + ".csv");
BufferedReader bReader = new BufferedReader(reader);
String line = bReader.readLine();
ArrayList allData = new ArrayList();
while (line != null) {
String[] dataStringArray = line.split(",");
for (int i = 0; i < dataStringArray.length; i++) {
allData.add(dataStringArray[i]);
}
line = bReader.readLine();
}
// this is used to print out and find values in emergency
for (int i = 0; i < allData.size(); i++) {
//System.out.println(i + " " + allData.get(i));
}
// the following are for first block of data
for (int i = 16; i < 208; i = i + 16) {
alpha.add(allData.get(i));
}
for (int i = 17; i < 208; i = i + 16) {
CL_wbh.add(allData.get(i));
}
for (int i = 18; i < 208; i = i + 16) {
CLq_deg.add(allData.get(i));
}
for (int i = 19; i < 208; i = i + 16) {
CLadot_deg.add(allData.get(i));
}
for (int i = 20; i < 208; i = i + 16) {
CD_wbh.add(allData.get(i));
}
for (int i = 21; i < 208; i = i + 16) {
CYbeta_deg.add(allData.get(i));
}
for (int i = 22; i < 208; i = i + 16) {
CYp_deg.add(allData.get(i));
}
for (int i = 23; i < 208; i = i + 16) {
Clbeta_deg.add(allData.get(i));
}
for (int i = 24; i < 208; i = i + 16) {
Clp_deg.add(allData.get(i));
}
for (int i = 25; i < 208; i = i + 16) {
Clr_deg.add(allData.get(i));
}
for (int i = 26; i < 208; i = i + 16) {
CM_wbh.add(allData.get(i));
}
for (int i = 27; i < 208; i = i + 16) {
CMq_deg.add(allData.get(i));
}
for (int i = 28; i < 208; i = i + 16) {
CMadot_deg.add(allData.get(i));
}
for (int i = 29; i < 208; i = i + 16) {
CNbeta_deg.add(allData.get(i));
}
for (int i = 30; i < 208; i = i + 16) {
CNp_deg.add(allData.get(i));
}
for (int i = 31; i < 208; i = i + 16) {
CNr_deg.add(allData.get(i));
}
//quick test by printing
bReader.close();
reader.close();
} catch (FileNotFoundException ex) {
Logger.getLogger(ProjectCore.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(ProjectCore.class.getName()).log(Level.SEVERE, null, ex);
}
}
// deletes the folders created for multiple analysis
public static void deleteFolders(String path, String folderName) {
//System.out.println(path + "/" + folderName);
//File toDelete = new File(path + "/" + folderName);
//boolean success = FileUtils.deleteQuietly(toDelete);
// requires import org.apache.commons.io.FileUtils;
//if(success == true) {
// System.out.println("File Was Deleted");
//}
//else {
// System.out.println("File Was Not Deleted");
//}
}
// runs each datcom file in a separate thread for multiple analysis
private void runDatcom(String relativePath, int folderCount) {
for (int i = 1; i <= folderCount; i++) {
Runner runner1 = new Runner();
runner1.relativePath = relativePath;
runner1.folder = "" + i;
runner1.start();
}
}
// initialises the fuselage arraylist with 20 zeros
private void initialiseFuselageData() {
double zeroDouble = 0.0;
for (int i = 1; i <= 20; i++) {
fuselageDistance.add(zeroDouble);
fuselageRadius.add(zeroDouble);
fuselageCircumference.add(zeroDouble);
fuselageArea.add(zeroDouble);
fuselageUpper.add(zeroDouble);
fuselageLower.add(zeroDouble);
}
}
// initialises the import data array with 120 zeros
private void initialiseImportData() {
for (int i = 1; i <= 120; i++) {
importedData.add(zero); // provisionally 120 lines
}
}
// initialises the provisional input array with 120 zeros
private void initialiseProvisional() {
for (int i = 1; i <= 120; i++) {
provDatcomData.add(zero); // provisionally add 120 lines
}
}
// initialises the sectionList array. 0 indicates no section data therefore ignore
// index 0 indicates number of fuselage points (as n)
// index 1 indicates whether there is a breakpoint or not (1 = not, 2 = bp)
// index 2 indicates whether there is a horz stab (1 = true)
// index 3 indicates whether there is a vert stab (1 = true)
// index 4 indicates whether there is propulsion data, 1 being true
// index 5 indicates whether there are flaps, 1 being true
// index 6 indicates whether there are elevators and/or ailerons
// for index 6, 1 is both, 2 is elev only, 3 is aileron only
// index 7 indicates the number of angles of attack (as n)
// index 8 is kept for utility for now, serves no purpose currently
private void initialiseSectionList() {
sectionList.add(20); // fuselage
sectionList.add(2); // wing
sectionList.add(1); // horz stab
sectionList.add(1); // vert stab
sectionList.add(zero); // prop
sectionList.add(zero); // flaps
sectionList.add(zero); // controls
sectionList.add(20); // angle attack
sectionList.add(zero); // utility
previousList.add(zero);
previousList.add(zero);
previousList.add(zero);
previousList.add(zero);
previousList.add(zero);
previousList.add(zero);
previousList.add(zero);
previousList.add(zero);
previousList.add(zero);
}
/**
* This method is called from within the constructor to initialise the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
groupRun = new javax.swing.ButtonGroup();
groupImport = new javax.swing.ButtonGroup();
groupProp = new javax.swing.ButtonGroup();
groupCSV = new javax.swing.ButtonGroup();
groupJSBSim = new javax.swing.ButtonGroup();
groupFuselagePlot = new javax.swing.ButtonGroup();
groupAC3D = new javax.swing.ButtonGroup();
groupDisplayAC3D = new javax.swing.ButtonGroup();
groupAC3DFuselage = new javax.swing.ButtonGroup();
groupMatlab = new javax.swing.ButtonGroup();
groupLog = new javax.swing.ButtonGroup();
groupOldCSV = new javax.swing.ButtonGroup();
groupAirfoilPlot = new javax.swing.ButtonGroup();
groupOutput = new javax.swing.ButtonGroup();
groupDamp = new javax.swing.ButtonGroup();
groupPartial = new javax.swing.ButtonGroup();
pnlMainTab = new javax.swing.JTabbedPane();
pnlInput = new javax.swing.JPanel();
pnlInnerTabs = new javax.swing.JTabbedPane();
pnlImport = new javax.swing.JPanel();
jPanel22 = new javax.swing.JPanel();
jButton13 = new javax.swing.JButton();
btnImportOpen = new javax.swing.JButton();
jPanel6 = new javax.swing.JPanel();
radioButtonManual = new javax.swing.JRadioButton();
radioButtonImport = new javax.swing.JRadioButton();
btnImportReview = new javax.swing.JButton();
jLabel62 = new javax.swing.JLabel();
txtImportStatus = new javax.swing.JTextField();
btnManualBegin = new javax.swing.JButton();
jButton25 = new javax.swing.JButton();
pnlBody = new javax.swing.JPanel();
jPanel13 = new javax.swing.JPanel();
jLabel28 = new javax.swing.JLabel();
comboNumberStations = new javax.swing.JComboBox();
jLabel31 = new javax.swing.JLabel();
comboFtM1 = new javax.swing.JComboBox();
jLabel32 = new javax.swing.JLabel();
txtRadiusBody = new javax.swing.JTextField();
comboFtM2 = new javax.swing.JComboBox();
jLabel33 = new javax.swing.JLabel();
txtHighestBody = new javax.swing.JTextField();
comboFtM3 = new javax.swing.JComboBox();
jLabel34 = new javax.swing.JLabel();
txtLowestBody = new javax.swing.JTextField();
comboFtM4 = new javax.swing.JComboBox();
jLabel35 = new javax.swing.JLabel();
txtAreaBody = new javax.swing.JTextField();
comboFtM5 = new javax.swing.JComboBox();
jLabel36 = new javax.swing.JLabel();
txtCircumBody = new javax.swing.JTextField();
comboFtM6 = new javax.swing.JComboBox();
btnNextStation = new javax.swing.JButton();
btnPreviousStation = new javax.swing.JButton();
btnHelp1 = new javax.swing.JButton();
btnClearBodyAll = new javax.swing.JButton();
btnClearBodyCurrent = new javax.swing.JButton();
btnSaveNextBody = new javax.swing.JButton();
btnVisualBody = new javax.swing.JButton();
jPanel23 = new javax.swing.JPanel();
checkBodyOnly = new javax.swing.JCheckBox();
jLabel29 = new javax.swing.JLabel();
comboStation = new javax.swing.JComboBox();
checkAutoCalculateBody = new javax.swing.JCheckBox();
jLabel30 = new javax.swing.JLabel();
comboShape = new javax.swing.JComboBox();
jLabel26 = new javax.swing.JLabel();
txtNoseLength = new javax.swing.JTextField();
comboFtM7 = new javax.swing.JComboBox();
jLabel147 = new javax.swing.JLabel();
txtAfterbodyLength = new javax.swing.JTextField();
comboFtM8 = new javax.swing.JComboBox();
txtDistanceNose = new javax.swing.JTextField();
pnlWing = new javax.swing.JPanel();
jPanel8 = new javax.swing.JPanel();
jLabel45 = new javax.swing.JLabel();
comboWingType = new javax.swing.JComboBox();
jLabel47 = new javax.swing.JLabel();
txtRootChord = new javax.swing.JTextField();
jLabel48 = new javax.swing.JLabel();
txtTipChord = new javax.swing.JTextField();
jLabel49 = new javax.swing.JLabel();
txtSSpan = new javax.swing.JTextField();
jLabel52 = new javax.swing.JLabel();
txtSweep = new javax.swing.JTextField();
jLabel54 = new javax.swing.JLabel();
txtTwist = new javax.swing.JTextField();
jLabel55 = new javax.swing.JLabel();
txtDihedral = new javax.swing.JTextField();
comboLength1 = new javax.swing.JComboBox();
comboLength2 = new javax.swing.JComboBox();
comboLength3 = new javax.swing.JComboBox();
comboLength4 = new javax.swing.JComboBox();
comboLength5 = new javax.swing.JComboBox();
comboLength6 = new javax.swing.JComboBox();
jLabel25 = new javax.swing.JLabel();
txtIncidence = new javax.swing.JTextField();
comboLength7 = new javax.swing.JComboBox();
jPanel10 = new javax.swing.JPanel();
jLabel50 = new javax.swing.JLabel();
txtChordBreak = new javax.swing.JTextField();
jLabel51 = new javax.swing.JLabel();
txtOutSpan = new javax.swing.JTextField();
jLabel53 = new javax.swing.JLabel();
txtOutSweep = new javax.swing.JTextField();
jLabel56 = new javax.swing.JLabel();
txtOutDihedral = new javax.swing.JTextField();
comboLength8 = new javax.swing.JComboBox();
comboLength9 = new javax.swing.JComboBox();
comboLength10 = new javax.swing.JComboBox();
comboLength11 = new javax.swing.JComboBox();
jPanel11 = new javax.swing.JPanel();
jLabel57 = new javax.swing.JLabel();
comboNACA = new javax.swing.JComboBox();
jLabel58 = new javax.swing.JLabel();
txtAirfoilCode = new javax.swing.JTextField();
jPanel12 = new javax.swing.JPanel();
jLabel23 = new javax.swing.JLabel();
jLabel24 = new javax.swing.JLabel();
txtHorzWingPos = new javax.swing.JTextField();
txtVertWingPos = new javax.swing.JTextField();
comboLength13 = new javax.swing.JComboBox();
comboLength12 = new javax.swing.JComboBox();
jLabel42 = new javax.swing.JLabel();
txtSSPNE = new javax.swing.JTextField();
comboLength14 = new javax.swing.JComboBox();
jLabel107 = new javax.swing.JLabel();
txtCHSTAT = new javax.swing.JTextField();
jLabel108 = new javax.swing.JLabel();
checkAutoSSPNE = new javax.swing.JCheckBox();
jLabel109 = new javax.swing.JLabel();
comboTypeWing = new javax.swing.JComboBox();
jPanel19 = new javax.swing.JPanel();
btnHelp2 = new javax.swing.JButton();
btnSaveNextWing = new javax.swing.JButton();
btnClearWing = new javax.swing.JButton();
btnVisualWing = new javax.swing.JButton();
pnlTail = new javax.swing.JPanel();
jPanel14 = new javax.swing.JPanel();
jButton1 = new javax.swing.JButton();
btnSaveNextTail = new javax.swing.JButton();
jButton17 = new javax.swing.JButton();
jButton24 = new javax.swing.JButton();
jPanel25 = new javax.swing.JPanel();
jLabel66 = new javax.swing.JLabel();
txtRootChord1 = new javax.swing.JTextField();
jLabel67 = new javax.swing.JLabel();
txtTipChord1 = new javax.swing.JTextField();
jLabel68 = new javax.swing.JLabel();
txtSSpan1 = new javax.swing.JTextField();
jLabel69 = new javax.swing.JLabel();
txtSweep1 = new javax.swing.JTextField();
jLabel70 = new javax.swing.JLabel();
jLabel71 = new javax.swing.JLabel();
txtCHSTAT1 = new javax.swing.JTextField();
comboLength15 = new javax.swing.JComboBox();
comboLength16 = new javax.swing.JComboBox();
comboLength17 = new javax.swing.JComboBox();
comboLength18 = new javax.swing.JComboBox();
jLabel72 = new javax.swing.JLabel();
txtCHSTAT2 = new javax.swing.JTextField();
jLabel99 = new javax.swing.JLabel();
checkHorzStab = new javax.swing.JCheckBox();
jLabel130 = new javax.swing.JLabel();
jLabel131 = new javax.swing.JLabel();
jLabel132 = new javax.swing.JLabel();
txtDihedral1 = new javax.swing.JTextField();
comboLength19 = new javax.swing.JComboBox();
jPanel27 = new javax.swing.JPanel();
jLabel75 = new javax.swing.JLabel();
jLabel76 = new javax.swing.JLabel();
txtHorzWingPos2 = new javax.swing.JTextField();
txtVertWingPos2 = new javax.swing.JTextField();
comboLength25 = new javax.swing.JComboBox();
comboLength26 = new javax.swing.JComboBox();
jLabel77 = new javax.swing.JLabel();
txtSSPNE2 = new javax.swing.JTextField();
comboLength27 = new javax.swing.JComboBox();
jLabel101 = new javax.swing.JLabel();
checkAutoSSPNE1 = new javax.swing.JCheckBox();
comboHorzNACA = new javax.swing.JComboBox();
jLabel110 = new javax.swing.JLabel();
txtHorzCode = new javax.swing.JTextField();
jPanel31 = new javax.swing.JPanel();
jLabel92 = new javax.swing.JLabel();
txtRootChord2 = new javax.swing.JTextField();
jLabel93 = new javax.swing.JLabel();
txtTipChord2 = new javax.swing.JTextField();
jLabel94 = new javax.swing.JLabel();
txtSSpan2 = new javax.swing.JTextField();
jLabel95 = new javax.swing.JLabel();
txtSweep2 = new javax.swing.JTextField();
jLabel97 = new javax.swing.JLabel();
txtCant = new javax.swing.JTextField();
comboLength28 = new javax.swing.JComboBox();
comboLength29 = new javax.swing.JComboBox();
comboLength30 = new javax.swing.JComboBox();
comboLength31 = new javax.swing.JComboBox();
comboLength33 = new javax.swing.JComboBox();
jLabel98 = new javax.swing.JLabel();
txtYV = new javax.swing.JTextField();
comboLength34 = new javax.swing.JComboBox();
jLabel100 = new javax.swing.JLabel();
checkVertStab = new javax.swing.JCheckBox();
checkTwinVert = new javax.swing.JCheckBox();
jPanel32 = new javax.swing.JPanel();
jLabel102 = new javax.swing.JLabel();
jLabel103 = new javax.swing.JLabel();
txtHorzWingPos3 = new javax.swing.JTextField();
txtVertWingPos3 = new javax.swing.JTextField();
comboLength35 = new javax.swing.JComboBox();
comboLength36 = new javax.swing.JComboBox();
jLabel104 = new javax.swing.JLabel();
txtSSPNE3 = new javax.swing.JTextField();
comboLength37 = new javax.swing.JComboBox();
jLabel105 = new javax.swing.JLabel();
checkAutoSSPNE2 = new javax.swing.JCheckBox();
comboVertNACA = new javax.swing.JComboBox();
jLabel111 = new javax.swing.JLabel();
txtVertCode = new javax.swing.JTextField();
pnlProp = new javax.swing.JPanel();
jPanel18 = new javax.swing.JPanel();
jButton8 = new javax.swing.JButton();
btnSaveNextProp = new javax.swing.JButton();
jButton18 = new javax.swing.JButton();
jPanel33 = new javax.swing.JPanel();
jLabel115 = new javax.swing.JLabel();
txtRootChord3 = new javax.swing.JTextField();
jLabel116 = new javax.swing.JLabel();
txtTipChord3 = new javax.swing.JTextField();
jLabel117 = new javax.swing.JLabel();
txtSSpan3 = new javax.swing.JTextField();
jLabel118 = new javax.swing.JLabel();
txtSweep3 = new javax.swing.JTextField();
jLabel120 = new javax.swing.JLabel();
txtDihedral3 = new javax.swing.JTextField();
comboLength38 = new javax.swing.JComboBox();
comboLength39 = new javax.swing.JComboBox();
comboLength40 = new javax.swing.JComboBox();
comboLength41 = new javax.swing.JComboBox();
comboLength43 = new javax.swing.JComboBox();
jLabel121 = new javax.swing.JLabel();
txtIncidence3 = new javax.swing.JTextField();
comboLength44 = new javax.swing.JComboBox();
jLabel122 = new javax.swing.JLabel();
checkVertStab1 = new javax.swing.JCheckBox();
checkTwinFin = new javax.swing.JCheckBox();
jPanel1 = new javax.swing.JPanel();
btnDatcomEngine = new javax.swing.JRadioButton();
btnNoProp = new javax.swing.JRadioButton();
comboProp = new javax.swing.JComboBox();
jLabel113 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jTextField2 = new javax.swing.JTextField();
btnUserEngine = new javax.swing.JRadioButton();
jLabel112 = new javax.swing.JLabel();
jLabel96 = new javax.swing.JLabel();
jLabel114 = new javax.swing.JLabel();
jLabel123 = new javax.swing.JLabel();
jLabel124 = new javax.swing.JLabel();
jTextField3 = new javax.swing.JTextField();
jTextField4 = new javax.swing.JTextField();
jTextField5 = new javax.swing.JTextField();
jTextField6 = new javax.swing.JTextField();
jLabel125 = new javax.swing.JLabel();
jLabel127 = new javax.swing.JLabel();
jTextField7 = new javax.swing.JTextField();
jLabel128 = new javax.swing.JLabel();
jTextField8 = new javax.swing.JTextField();
jLabel129 = new javax.swing.JLabel();
jTextField9 = new javax.swing.JTextField();
jLabel27 = new javax.swing.JLabel();
jComboBox1 = new javax.swing.JComboBox();
jPanel15 = new javax.swing.JPanel();
jLabel119 = new javax.swing.JLabel();
comboNACA1 = new javax.swing.JComboBox();
jLabel126 = new javax.swing.JLabel();
txtAirfoilCode1 = new javax.swing.JTextField();
pnlControls = new javax.swing.JPanel();
jPanel5 = new javax.swing.JPanel();
jButton9 = new javax.swing.JButton();
btnSaveNextControl = new javax.swing.JButton();
jButton14 = new javax.swing.JButton();
radioButtonAileron = new javax.swing.JRadioButton();
radioButtonFlaps = new javax.swing.JRadioButton();
jLabel79 = new javax.swing.JLabel();
jLabel80 = new javax.swing.JLabel();
jPanel17 = new javax.swing.JPanel();
radioButtonElevator = new javax.swing.JRadioButton();
txtSpanfo = new javax.swing.JTextField();
txtChrdfo = new javax.swing.JTextField();
jLabel78 = new javax.swing.JLabel();
jLabel134 = new javax.swing.JLabel();
jLabel137 = new javax.swing.JLabel();
comboElevDef = new javax.swing.JComboBox();
jLabel135 = new javax.swing.JLabel();
txtSpanfi = new javax.swing.JTextField();
jLabel136 = new javax.swing.JLabel();
jLabel133 = new javax.swing.JLabel();
txtChrdfi = new javax.swing.JTextField();
comboElevType = new javax.swing.JComboBox();
jComboBox6 = new javax.swing.JComboBox();
jComboBox7 = new javax.swing.JComboBox();
jComboBox8 = new javax.swing.JComboBox();
jComboBox9 = new javax.swing.JComboBox();
radioButtonNoCont = new javax.swing.JRadioButton();
jPanel24 = new javax.swing.JPanel();
txtEDef1 = new javax.swing.JTextField();
txtEDef2 = new javax.swing.JTextField();
jComboBox10 = new javax.swing.JComboBox();
jLabel139 = new javax.swing.JLabel();
jComboBox11 = new javax.swing.JComboBox();
jLabel138 = new javax.swing.JLabel();
jLabel140 = new javax.swing.JLabel();
jLabel141 = new javax.swing.JLabel();
jLabel142 = new javax.swing.JLabel();
txtEDef3 = new javax.swing.JTextField();
txtEDef4 = new javax.swing.JTextField();
txtEDef5 = new javax.swing.JTextField();
jComboBox12 = new javax.swing.JComboBox();
jComboBox13 = new javax.swing.JComboBox();
jComboBox14 = new javax.swing.JComboBox();
jPanel26 = new javax.swing.JPanel();
txtEDef6 = new javax.swing.JTextField();
txtEDef7 = new javax.swing.JTextField();
jComboBox15 = new javax.swing.JComboBox();
jLabel143 = new javax.swing.JLabel();
jComboBox16 = new javax.swing.JComboBox();
jLabel144 = new javax.swing.JLabel();
jLabel145 = new javax.swing.JLabel();
jLabel146 = new javax.swing.JLabel();
txtEDef8 = new javax.swing.JTextField();
txtEDef9 = new javax.swing.JTextField();
jComboBox17 = new javax.swing.JComboBox();
jComboBox18 = new javax.swing.JComboBox();
pnlOther = new javax.swing.JPanel();
pnlAng2 = new javax.swing.JPanel();
jLabel20 = new javax.swing.JLabel();
jLabel21 = new javax.swing.JLabel();
txtAng13 = new javax.swing.JTextField();
txtAng16 = new javax.swing.JTextField();
txtAng11 = new javax.swing.JTextField();
jLabel19 = new javax.swing.JLabel();
txtAng20 = new javax.swing.JTextField();
jLabel15 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
jLabel14 = new javax.swing.JLabel();
txtAng14 = new javax.swing.JTextField();
jLabel22 = new javax.swing.JLabel();
txtAng18 = new javax.swing.JTextField();
jLabel13 = new javax.swing.JLabel();
jLabel17 = new javax.swing.JLabel();
txtAng12 = new javax.swing.JTextField();
txtAng19 = new javax.swing.JTextField();
txtAng17 = new javax.swing.JTextField();
txtAng15 = new javax.swing.JTextField();
jLabel18 = new javax.swing.JLabel();
lbl11 = new javax.swing.JLabel();
lbl12 = new javax.swing.JLabel();
lbl13 = new javax.swing.JLabel();
lbl14 = new javax.swing.JLabel();
lbl15 = new javax.swing.JLabel();
lbl16 = new javax.swing.JLabel();
lbl17 = new javax.swing.JLabel();
lbl18 = new javax.swing.JLabel();
lbl19 = new javax.swing.JLabel();