Child: [r20] (diff)

Download this file

Editor.java    1122 lines (994 with data), 63.6 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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
/*
* SPDXVersion: SPDX-1.1
*
* Creator: Person: Nuno Brito (nuno.brito@triplecheck.de)
*
* Creator: Organization: TripleCheck (contact@triplecheck.de)
*
* Created: 2013-09-14T00:00:00Z
*
* LicenseName: NOASSERTION
*
* FileName: Editor.java
*
* FileType: SOURCE
*
* FileCopyrightText: <text> Copyright 2013 Nuno Brito, TripleCheck </text>
*
* FileComment: <text> The editor of SPDX </text>
*/
package GUI;
import definitions.is;
import java.awt.Toolkit;
import java.net.URL;
import javax.swing.UIManager;
/**
*
* @author Nuno Brito
*/
public class Editor extends javax.swing.JFrame {
/**
* Creates new form Editor
*/
public Editor() {
// adopt the default user interface menus and buttons
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception ex) {}
// get the window icon working
URL imgURL = this.getClass().getResource(is.defaultIcon);
setIconImage(Toolkit.getDefaultToolkit().getImage(imgURL));
initComponents();
doSettings();
}
/**
* This method is called from within the constructor to initialize 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() {
jTabbedPane3 = new javax.swing.JTabbedPane();
panelBasic = new javax.swing.JPanel();
jScrollPane9 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jLabel10 = new javax.swing.JLabel();
jLabel11 = new javax.swing.JLabel();
jComboBox1 = new javax.swing.JComboBox();
jLabel13 = new javax.swing.JLabel();
textStoreSPDX7 = new javax.swing.JTextField();
jLabel14 = new javax.swing.JLabel();
jLabel15 = new javax.swing.JLabel();
textStoreSPDX8 = new javax.swing.JTextField();
jLabel16 = new javax.swing.JLabel();
textStoreSPDX9 = new javax.swing.JTextField();
jLabel17 = new javax.swing.JLabel();
textStoreSPDX10 = new javax.swing.JTextField();
jScrollPane10 = new javax.swing.JScrollPane();
jTextArea2 = new javax.swing.JTextArea();
jLabel18 = new javax.swing.JLabel();
jLabel36 = new javax.swing.JLabel();
textStoreSPDX25 = new javax.swing.JTextField();
jLabel43 = new javax.swing.JLabel();
textStoreSPDX31 = new javax.swing.JTextField();
jButton13 = new javax.swing.JButton();
panelPackage = new javax.swing.JPanel();
jLabel5 = new javax.swing.JLabel();
textStoreSPDX2 = new javax.swing.JTextField();
jLabel6 = new javax.swing.JLabel();
textStoreSPDX3 = new javax.swing.JTextField();
jLabel7 = new javax.swing.JLabel();
textStoreSPDX4 = new javax.swing.JTextField();
jLabel9 = new javax.swing.JLabel();
textStoreSPDX6 = new javax.swing.JTextField();
jLabel12 = new javax.swing.JLabel();
textStoreSPDX11 = new javax.swing.JTextField();
jLabel19 = new javax.swing.JLabel();
textStoreSPDX12 = new javax.swing.JTextField();
jLabel23 = new javax.swing.JLabel();
jScrollPane13 = new javax.swing.JScrollPane();
jTextArea4 = new javax.swing.JTextArea();
jLabel25 = new javax.swing.JLabel();
textStoreSPDX15 = new javax.swing.JTextField();
jLabel26 = new javax.swing.JLabel();
jScrollPane15 = new javax.swing.JScrollPane();
jTextArea6 = new javax.swing.JTextArea();
panelLicenses = new javax.swing.JPanel();
jLabel8 = new javax.swing.JLabel();
textStoreSPDX5 = new javax.swing.JTextField();
jLabel20 = new javax.swing.JLabel();
textStoreSPDX13 = new javax.swing.JTextField();
jButton7 = new javax.swing.JButton();
jScrollPane11 = new javax.swing.JScrollPane();
jList1 = new javax.swing.JList();
jButton8 = new javax.swing.JButton();
jLabel21 = new javax.swing.JLabel();
textStoreSPDX14 = new javax.swing.JTextField();
jLabel22 = new javax.swing.JLabel();
jScrollPane12 = new javax.swing.JScrollPane();
jTextArea3 = new javax.swing.JTextArea();
jScrollPane14 = new javax.swing.JScrollPane();
jTextArea5 = new javax.swing.JTextArea();
jLabel24 = new javax.swing.JLabel();
panelFiles = new javax.swing.JPanel();
jSplitPane3 = new javax.swing.JSplitPane();
jScrollPane8 = new javax.swing.JScrollPane();
jTree4 = new javax.swing.JTree();
jPanel9 = new javax.swing.JPanel();
textStoreSPDX16 = new javax.swing.JTextField();
jLabel27 = new javax.swing.JLabel();
jButton9 = new javax.swing.JButton();
textStoreSPDX17 = new javax.swing.JTextField();
jLabel28 = new javax.swing.JLabel();
jButton10 = new javax.swing.JButton();
jScrollPane7 = new javax.swing.JScrollPane();
jTextArea7 = new javax.swing.JTextArea();
jLabel30 = new javax.swing.JLabel();
jScrollPane16 = new javax.swing.JScrollPane();
jTextArea8 = new javax.swing.JTextArea();
jScrollPane17 = new javax.swing.JScrollPane();
jTextArea9 = new javax.swing.JTextArea();
jLabel32 = new javax.swing.JLabel();
textStoreSPDX18 = new javax.swing.JTextField();
jButton11 = new javax.swing.JButton();
textStoreSPDX19 = new javax.swing.JTextField();
textStoreSPDX20 = new javax.swing.JTextField();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
panelReview = new javax.swing.JPanel();
jLabel29 = new javax.swing.JLabel();
jLabel31 = new javax.swing.JLabel();
textStoreSPDX21 = new javax.swing.JTextField();
jLabel33 = new javax.swing.JLabel();
textStoreSPDX22 = new javax.swing.JTextField();
jLabel34 = new javax.swing.JLabel();
textStoreSPDX23 = new javax.swing.JTextField();
jLabel35 = new javax.swing.JLabel();
textStoreSPDX24 = new javax.swing.JTextField();
jLabel37 = new javax.swing.JLabel();
textStoreSPDX26 = new javax.swing.JTextField();
jButton12 = new javax.swing.JButton();
jScrollPane18 = new javax.swing.JScrollPane();
jTextArea10 = new javax.swing.JTextArea();
jLabel38 = new javax.swing.JLabel();
jButton15 = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("Editor");
setLocationByPlatform(true);
jTextArea1.setColumns(20);
jTextArea1.setLineWrap(true);
jTextArea1.setRows(3);
jTextArea1.setWrapStyleWord(true);
jScrollPane9.setViewportView(jTextArea1);
jLabel10.setText("Document comment");
jLabel11.setText("Data license");
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
jLabel13.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel13.setText("Document creator");
textStoreSPDX7.setText(" ");
jLabel14.setText("Person");
jLabel15.setText("Organization");
textStoreSPDX8.setText(" ");
jLabel16.setText("Email contact of organization");
textStoreSPDX9.setText(" ");
jLabel17.setText("Email contact of person");
textStoreSPDX10.setText(" ");
jTextArea2.setColumns(20);
jTextArea2.setLineWrap(true);
jTextArea2.setRows(3);
jTextArea2.setWrapStyleWord(true);
jScrollPane10.setViewportView(jTextArea2);
jLabel18.setText("Creator comment (optional)");
jLabel36.setText("Tool");
textStoreSPDX25.setText(" ");
jLabel43.setText("Creation time");
textStoreSPDX31.setText(" ");
textStoreSPDX31.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
textStoreSPDX31ActionPerformed(evt);
}
});
jButton13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/alarm-clock.png"))); // NOI18N
jButton13.setText("Add time \"now\"");
jButton13.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton13ActionPerformed(evt);
}
});
javax.swing.GroupLayout panelBasicLayout = new javax.swing.GroupLayout(panelBasic);
panelBasic.setLayout(panelBasicLayout);
panelBasicLayout.setHorizontalGroup(
panelBasicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelBasicLayout.createSequentialGroup()
.addContainerGap()
.addGroup(panelBasicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelBasicLayout.createSequentialGroup()
.addGroup(panelBasicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel10)
.addGroup(panelBasicLayout.createSequentialGroup()
.addComponent(jLabel11)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jLabel13)
.addGroup(panelBasicLayout.createSequentialGroup()
.addGroup(panelBasicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel15)
.addComponent(textStoreSPDX8, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(panelBasicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel16)
.addComponent(textStoreSPDX9, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGap(101, 101, 101))
.addGroup(panelBasicLayout.createSequentialGroup()
.addGroup(panelBasicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel14)
.addComponent(textStoreSPDX7, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(panelBasicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelBasicLayout.createSequentialGroup()
.addComponent(jLabel17)
.addGap(0, 221, Short.MAX_VALUE))
.addComponent(textStoreSPDX10))
.addGap(31, 31, 31))
.addGroup(panelBasicLayout.createSequentialGroup()
.addGroup(panelBasicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelBasicLayout.createSequentialGroup()
.addComponent(textStoreSPDX25, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(textStoreSPDX31)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jButton13))
.addGroup(panelBasicLayout.createSequentialGroup()
.addGroup(panelBasicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel18)
.addGroup(panelBasicLayout.createSequentialGroup()
.addComponent(jLabel36)
.addGap(78, 78, 78)
.addComponent(jLabel43)))
.addGap(0, 0, Short.MAX_VALUE)))
.addContainerGap())
.addGroup(panelBasicLayout.createSequentialGroup()
.addGroup(panelBasicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane9)
.addComponent(jScrollPane10))
.addContainerGap())))
);
panelBasicLayout.setVerticalGroup(
panelBasicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelBasicLayout.createSequentialGroup()
.addContainerGap()
.addGroup(panelBasicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel11)
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel10)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addGroup(panelBasicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(panelBasicLayout.createSequentialGroup()
.addComponent(jLabel13)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel14)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(textStoreSPDX7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(panelBasicLayout.createSequentialGroup()
.addComponent(jLabel17)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(textStoreSPDX10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelBasicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(panelBasicLayout.createSequentialGroup()
.addComponent(jLabel16)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(textStoreSPDX9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(panelBasicLayout.createSequentialGroup()
.addComponent(jLabel15)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(textStoreSPDX8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(panelBasicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel36)
.addComponent(jLabel43))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelBasicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(textStoreSPDX25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(textStoreSPDX31, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton13))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel18)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27))
);
jTabbedPane3.addTab("Document", new javax.swing.ImageIcon(getClass().getResource("/icons/postage-stamp.png")), panelBasic); // NOI18N
jLabel5.setText("Package name");
textStoreSPDX2.setText(" ");
jLabel6.setText("Version (optional)");
textStoreSPDX3.setText(" ");
jLabel7.setText("Package direct download location");
textStoreSPDX4.setText(" ");
jLabel9.setText("Package filename (optional)");
textStoreSPDX6.setText(" ");
jLabel12.setText("Package supplier (optional)");
textStoreSPDX11.setText(" ");
jLabel19.setText("Package Originator (optional)");
textStoreSPDX12.setText(" ");
jLabel23.setText("Source information (optional)");
jTextArea4.setColumns(20);
jTextArea4.setLineWrap(true);
jTextArea4.setRows(2);
jTextArea4.setWrapStyleWord(true);
jScrollPane13.setViewportView(jTextArea4);
jLabel25.setText("Summary description (optional)");
textStoreSPDX15.setText(" ");
jLabel26.setText("Detailed description (optional)");
jTextArea6.setColumns(20);
jTextArea6.setLineWrap(true);
jTextArea6.setRows(2);
jTextArea6.setWrapStyleWord(true);
jScrollPane15.setViewportView(jTextArea6);
javax.swing.GroupLayout panelPackageLayout = new javax.swing.GroupLayout(panelPackage);
panelPackage.setLayout(panelPackageLayout);
panelPackageLayout.setHorizontalGroup(
panelPackageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelPackageLayout.createSequentialGroup()
.addContainerGap()
.addGroup(panelPackageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelPackageLayout.createSequentialGroup()
.addComponent(jLabel7)
.addGap(258, 258, 258))
.addGroup(panelPackageLayout.createSequentialGroup()
.addGroup(panelPackageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel23)
.addComponent(jLabel26))
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelPackageLayout.createSequentialGroup()
.addGroup(panelPackageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jScrollPane13, javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, panelPackageLayout.createSequentialGroup()
.addGroup(panelPackageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelPackageLayout.createSequentialGroup()
.addComponent(jLabel5)
.addGap(0, 0, Short.MAX_VALUE))
.addComponent(textStoreSPDX2))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(panelPackageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel6)
.addComponent(textStoreSPDX3, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, panelPackageLayout.createSequentialGroup()
.addGroup(panelPackageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel9)
.addComponent(textStoreSPDX4, javax.swing.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(panelPackageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jLabel12)
.addComponent(textStoreSPDX11, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(textStoreSPDX12, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(textStoreSPDX6)
.addComponent(textStoreSPDX15, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane15)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, panelPackageLayout.createSequentialGroup()
.addGroup(panelPackageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel19, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel25, javax.swing.GroupLayout.Alignment.LEADING))
.addGap(0, 0, Short.MAX_VALUE)))
.addContainerGap())))
);
panelPackageLayout.setVerticalGroup(
panelPackageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelPackageLayout.createSequentialGroup()
.addContainerGap()
.addGroup(panelPackageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelPackageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel5)
.addComponent(jLabel6))
.addGroup(panelPackageLayout.createSequentialGroup()
.addGap(20, 20, 20)
.addGroup(panelPackageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(textStoreSPDX3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(textStoreSPDX2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(panelPackageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(panelPackageLayout.createSequentialGroup()
.addComponent(jLabel9)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelPackageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(textStoreSPDX4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(textStoreSPDX11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(panelPackageLayout.createSequentialGroup()
.addComponent(jLabel12)
.addGap(26, 26, 26)))
.addComponent(jLabel19)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(textStoreSPDX12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(textStoreSPDX6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel23)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel25)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(textStoreSPDX15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel26)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane15, javax.swing.GroupLayout.DEFAULT_SIZE, 59, Short.MAX_VALUE)
.addContainerGap())
);
jTabbedPane3.addTab("Package", new javax.swing.ImageIcon(getClass().getResource("/icons/wooden-box-label.png")), panelPackage); // NOI18N
jLabel8.setText("Concluded license");
textStoreSPDX5.setText(" ");
jLabel20.setText("All licenses information from Files");
textStoreSPDX13.setText(" ");
jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/medal--plus.png"))); // NOI18N
jButton7.setText("Add");
jButton7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton7ActionPerformed(evt);
}
});
jScrollPane11.setViewportView(jList1);
jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/medal--minus.png"))); // NOI18N
jButton8.setText("Remove");
jButton8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton8ActionPerformed(evt);
}
});
jLabel21.setText("Declared license");
textStoreSPDX14.setText(" ");
jLabel22.setText("Comments on license (optional)");
jTextArea3.setColumns(20);
jTextArea3.setLineWrap(true);
jTextArea3.setRows(3);
jTextArea3.setWrapStyleWord(true);
jScrollPane12.setViewportView(jTextArea3);
jTextArea5.setColumns(20);
jTextArea5.setLineWrap(true);
jTextArea5.setRows(2);
jTextArea5.setText("NOASSERTION | NONE");
jTextArea5.setWrapStyleWord(true);
jScrollPane14.setViewportView(jTextArea5);
jLabel24.setText("Copyright text");
javax.swing.GroupLayout panelLicensesLayout = new javax.swing.GroupLayout(panelLicenses);
panelLicenses.setLayout(panelLicensesLayout);
panelLicensesLayout.setHorizontalGroup(
panelLicensesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelLicensesLayout.createSequentialGroup()
.addContainerGap()
.addGroup(panelLicensesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelLicensesLayout.createSequentialGroup()
.addGroup(panelLicensesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelLicensesLayout.createSequentialGroup()
.addComponent(textStoreSPDX13)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton7))
.addGroup(panelLicensesLayout.createSequentialGroup()
.addComponent(jScrollPane11, javax.swing.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton8))
.addComponent(jScrollPane12)
.addGroup(panelLicensesLayout.createSequentialGroup()
.addComponent(jLabel22)
.addGap(0, 0, Short.MAX_VALUE))
.addComponent(jScrollPane14, javax.swing.GroupLayout.Alignment.TRAILING))
.addContainerGap())
.addGroup(panelLicensesLayout.createSequentialGroup()
.addGroup(panelLicensesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel20)
.addGroup(panelLicensesLayout.createSequentialGroup()
.addGroup(panelLicensesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel8)
.addComponent(textStoreSPDX5, javax.swing.GroupLayout.PREFERRED_SIZE, 163, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(panelLicensesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel21)
.addComponent(textStoreSPDX14, javax.swing.GroupLayout.PREFERRED_SIZE, 163, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(jLabel24))
.addGap(0, 0, Short.MAX_VALUE))))
);
panelLicensesLayout.setVerticalGroup(
panelLicensesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelLicensesLayout.createSequentialGroup()
.addContainerGap()
.addGroup(panelLicensesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(panelLicensesLayout.createSequentialGroup()
.addComponent(jLabel8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(textStoreSPDX5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(panelLicensesLayout.createSequentialGroup()
.addComponent(jLabel21)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(textStoreSPDX14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(18, 18, 18)
.addComponent(jLabel20)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelLicensesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(textStoreSPDX13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton7))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(panelLicensesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton8))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel22)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel24)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(55, Short.MAX_VALUE))
);
jTabbedPane3.addTab("Licenses", new javax.swing.ImageIcon(getClass().getResource("/icons/medal-premium.png")), panelLicenses); // NOI18N
jSplitPane3.setBorder(null);
jSplitPane3.setResizeWeight(0.3);
jTree4.setMaximumSize(new java.awt.Dimension(372, 64));
jTree4.setPreferredSize(new java.awt.Dimension(100, 64));
jScrollPane8.setViewportView(jTree4);
jSplitPane3.setLeftComponent(jScrollPane8);
jPanel9.setPreferredSize(new java.awt.Dimension(219, 331));
textStoreSPDX16.setText(" ");
jLabel27.setText("Concluded license for this file");
jButton9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/medal--plus.png"))); // NOI18N
jButton9.setText("Save");
jButton9.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton9ActionPerformed(evt);
}
});
textStoreSPDX17.setText(" ");
jLabel28.setText("License information in file");
jButton10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/medal--plus.png"))); // NOI18N
jButton10.setText("Change");
jButton10.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton10ActionPerformed(evt);
}
});
jTextArea7.setColumns(20);
jTextArea7.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
jTextArea7.setLineWrap(true);
jTextArea7.setRows(1);
jTextArea7.setText("<comments on license>");
jTextArea7.setWrapStyleWord(true);
jScrollPane7.setViewportView(jTextArea7);
jLabel30.setText("Copyright text");
jTextArea8.setColumns(20);
jTextArea8.setLineWrap(true);
jTextArea8.setRows(1);
jTextArea8.setText("NOASSERTION | NONE");
jTextArea8.setWrapStyleWord(true);
jScrollPane16.setViewportView(jTextArea8);
jTextArea9.setColumns(20);
jTextArea9.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
jTextArea9.setLineWrap(true);
jTextArea9.setRows(1);
jTextArea9.setText("<file comment>");
jTextArea9.setWrapStyleWord(true);
jScrollPane17.setViewportView(jTextArea9);
jLabel32.setText("Artifact of project name (optional)");
textStoreSPDX18.setText(" ");
jButton11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/paper-bag--plus.png"))); // NOI18N
jButton11.setText("Save");
jButton11.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton11ActionPerformed(evt);
}
});
textStoreSPDX19.setText("<Artifact of project homepage (optional)>");
textStoreSPDX20.setText("<Artifact of Project with URI (optional)>");
javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
jPanel9.setLayout(jPanel9Layout);
jPanel9Layout.setHorizontalGroup(
jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel9Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel9Layout.createSequentialGroup()
.addComponent(jLabel30)
.addGap(200, 277, Short.MAX_VALUE))
.addComponent(jScrollPane7)
.addComponent(jScrollPane17)
.addComponent(jScrollPane16)
.addGroup(jPanel9Layout.createSequentialGroup()
.addComponent(jLabel27)
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(jPanel9Layout.createSequentialGroup()
.addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
.addComponent(textStoreSPDX16)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jButton9))
.addGroup(jPanel9Layout.createSequentialGroup()
.addComponent(jLabel28)
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(jPanel9Layout.createSequentialGroup()
.addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(textStoreSPDX18)
.addGroup(jPanel9Layout.createSequentialGroup()
.addComponent(jLabel32)
.addGap(0, 0, Short.MAX_VALUE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton11))
.addComponent(textStoreSPDX19, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(textStoreSPDX20, javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(jPanel9Layout.createSequentialGroup()
.addComponent(textStoreSPDX17)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())))
);
jPanel9Layout.setVerticalGroup(
jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel9Layout.createSequentialGroup()
.addComponent(jLabel27)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(textStoreSPDX16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton9))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel28)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(textStoreSPDX17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton10))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel30)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jScrollPane17, javax.swing.GroupLayout.DEFAULT_SIZE, 34, Short.MAX_VALUE)
.addGap(7, 7, 7)
.addComponent(jLabel32)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(textStoreSPDX18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton11))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(textStoreSPDX19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(textStoreSPDX20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
jSplitPane3.setRightComponent(jPanel9);
jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/plus.png"))); // NOI18N
jButton3.setText("Add files..");
jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/document--minus.png"))); // NOI18N
jButton4.setText("Remove..");
javax.swing.GroupLayout panelFilesLayout = new javax.swing.GroupLayout(panelFiles);
panelFiles.setLayout(panelFilesLayout);
panelFilesLayout.setHorizontalGroup(
panelFilesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelFilesLayout.createSequentialGroup()
.addGap(5, 5, 5)
.addGroup(panelFilesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelFilesLayout.createSequentialGroup()
.addComponent(jButton3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jButton4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addComponent(jSplitPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 522, Short.MAX_VALUE))
.addContainerGap())
);
panelFilesLayout.setVerticalGroup(
panelFilesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelFilesLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jSplitPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 347, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelFilesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton3))
.addContainerGap())
);
jTabbedPane3.addTab("Files", new javax.swing.ImageIcon(getClass().getResource("/icons/document-sticky-note.png")), panelFiles); // NOI18N
jLabel29.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel29.setText("Reviewer");
jLabel31.setText("Person");
textStoreSPDX21.setText(" ");
jLabel33.setText("Organization");
textStoreSPDX22.setText(" ");
jLabel34.setText("Email contact of person");
textStoreSPDX23.setText(" ");
jLabel35.setText("Email contact of organization");
textStoreSPDX24.setText(" ");
jLabel37.setText("Review date");
textStoreSPDX26.setText(" ");
jButton12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/alarm-clock.png"))); // NOI18N
jButton12.setText("Add time \"now\"");
jButton12.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton12ActionPerformed(evt);
}
});
jTextArea10.setColumns(20);
jTextArea10.setLineWrap(true);
jTextArea10.setRows(3);
jTextArea10.setWrapStyleWord(true);
jScrollPane18.setViewportView(jTextArea10);
jLabel38.setText("Reviewer comment (optional)");
javax.swing.GroupLayout panelReviewLayout = new javax.swing.GroupLayout(panelReview);
panelReview.setLayout(panelReviewLayout);
panelReviewLayout.setHorizontalGroup(
panelReviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelReviewLayout.createSequentialGroup()
.addContainerGap()
.addGroup(panelReviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane18, javax.swing.GroupLayout.DEFAULT_SIZE, 517, Short.MAX_VALUE)
.addGroup(panelReviewLayout.createSequentialGroup()
.addGroup(panelReviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelReviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(panelReviewLayout.createSequentialGroup()
.addGroup(panelReviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel31)
.addComponent(textStoreSPDX21, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(panelReviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel34)
.addComponent(textStoreSPDX23)))
.addComponent(jLabel29)
.addGroup(panelReviewLayout.createSequentialGroup()
.addGroup(panelReviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel33)
.addComponent(textStoreSPDX22, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(panelReviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel35)
.addComponent(textStoreSPDX24, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addComponent(jLabel37)
.addGroup(panelReviewLayout.createSequentialGroup()
.addComponent(textStoreSPDX26, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jButton12))
.addComponent(jLabel38))
.addGap(0, 0, Short.MAX_VALUE)))
.addContainerGap())
);
panelReviewLayout.setVerticalGroup(
panelReviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelReviewLayout.createSequentialGroup()
.addContainerGap()
.addGroup(panelReviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(panelReviewLayout.createSequentialGroup()
.addComponent(jLabel29)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel31)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelReviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(textStoreSPDX21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(textStoreSPDX23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(panelReviewLayout.createSequentialGroup()
.addComponent(jLabel34)
.addGap(26, 26, 26)))
.addGroup(panelReviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(panelReviewLayout.createSequentialGroup()
.addComponent(jLabel35)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(textStoreSPDX24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(panelReviewLayout.createSequentialGroup()
.addComponent(jLabel33)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(textStoreSPDX22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(18, 18, 18)
.addComponent(jLabel37)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelReviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(textStoreSPDX26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton12))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel38)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane18, javax.swing.GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
.addContainerGap())
);
jTabbedPane3.addTab("Review", new javax.swing.ImageIcon(getClass().getResource("/icons/receipt--pencil.png")), panelReview); // NOI18N
jButton15.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/tick.png"))); // NOI18N
jButton15.setText("Save");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTabbedPane3, javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton15, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jTabbedPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 446, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton15)
.addContainerGap())
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void textStoreSPDX31ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_textStoreSPDX31ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_textStoreSPDX31ActionPerformed
private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton13ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButton13ActionPerformed
private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButton7ActionPerformed
private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButton8ActionPerformed
private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton9ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButton9ActionPerformed
private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButton10ActionPerformed
private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton11ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButton11ActionPerformed
private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton12ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButton12ActionPerformed
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/*
* Set the Nimbus look and feel
*/
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/*
* If Nimbus (introduced in Java SE 6) is not available, stay with the
* default look and feel. For details see
* http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(Editor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(Editor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(Editor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(Editor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
/*
* Create and display the form
*/
java.awt.EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
new Editor().setVisible(true);
}
});
}
/**
* used during initialisation of this GUI to fill up the proper
* values that were saved before
*/
private void doSettings() {
// textSourceFolder.setText(core.settings.read(is.settings));
// textStoreSPDX.setText(core.settings.read(is.folderSPDX));
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton10;
private javax.swing.JButton jButton11;
private javax.swing.JButton jButton12;
private javax.swing.JButton jButton13;
private javax.swing.JButton jButton15;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
private javax.swing.JButton jButton7;
private javax.swing.JButton jButton8;
private javax.swing.JButton jButton9;
private javax.swing.JComboBox jComboBox1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel12;
private javax.swing.JLabel jLabel13;
private javax.swing.JLabel jLabel14;
private javax.swing.JLabel jLabel15;
private javax.swing.JLabel jLabel16;
private javax.swing.JLabel jLabel17;
private javax.swing.JLabel jLabel18;
private javax.swing.JLabel jLabel19;
private javax.swing.JLabel jLabel20;
private javax.swing.JLabel jLabel21;
private javax.swing.JLabel jLabel22;
private javax.swing.JLabel jLabel23;
private javax.swing.JLabel jLabel24;
private javax.swing.JLabel jLabel25;
private javax.swing.JLabel jLabel26;
private javax.swing.JLabel jLabel27;
private javax.swing.JLabel jLabel28;
private javax.swing.JLabel jLabel29;
private javax.swing.JLabel jLabel30;
private javax.swing.JLabel jLabel31;
private javax.swing.JLabel jLabel32;
private javax.swing.JLabel jLabel33;
private javax.swing.JLabel jLabel34;
private javax.swing.JLabel jLabel35;
private javax.swing.JLabel jLabel36;
private javax.swing.JLabel jLabel37;
private javax.swing.JLabel jLabel38;
private javax.swing.JLabel jLabel43;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JList jList1;
private javax.swing.JPanel jPanel9;
private javax.swing.JScrollPane jScrollPane10;
private javax.swing.JScrollPane jScrollPane11;
private javax.swing.JScrollPane jScrollPane12;
private javax.swing.JScrollPane jScrollPane13;
private javax.swing.JScrollPane jScrollPane14;
private javax.swing.JScrollPane jScrollPane15;
private javax.swing.JScrollPane jScrollPane16;
private javax.swing.JScrollPane jScrollPane17;
private javax.swing.JScrollPane jScrollPane18;
private javax.swing.JScrollPane jScrollPane7;
private javax.swing.JScrollPane jScrollPane8;
private javax.swing.JScrollPane jScrollPane9;
private javax.swing.JSplitPane jSplitPane3;
private javax.swing.JTabbedPane jTabbedPane3;
private javax.swing.JTextArea jTextArea1;
private javax.swing.JTextArea jTextArea10;
private javax.swing.JTextArea jTextArea2;
private javax.swing.JTextArea jTextArea3;
private javax.swing.JTextArea jTextArea4;
private javax.swing.JTextArea jTextArea5;
private javax.swing.JTextArea jTextArea6;
private javax.swing.JTextArea jTextArea7;
private javax.swing.JTextArea jTextArea8;
private javax.swing.JTextArea jTextArea9;
private javax.swing.JTree jTree4;
private javax.swing.JPanel panelBasic;
private javax.swing.JPanel panelFiles;
private javax.swing.JPanel panelLicenses;
private javax.swing.JPanel panelPackage;
private javax.swing.JPanel panelReview;
private javax.swing.JTextField textStoreSPDX10;
private javax.swing.JTextField textStoreSPDX11;
private javax.swing.JTextField textStoreSPDX12;
private javax.swing.JTextField textStoreSPDX13;
private javax.swing.JTextField textStoreSPDX14;
private javax.swing.JTextField textStoreSPDX15;
private javax.swing.JTextField textStoreSPDX16;
private javax.swing.JTextField textStoreSPDX17;
private javax.swing.JTextField textStoreSPDX18;
private javax.swing.JTextField textStoreSPDX19;
private javax.swing.JTextField textStoreSPDX2;
private javax.swing.JTextField textStoreSPDX20;
private javax.swing.JTextField textStoreSPDX21;
private javax.swing.JTextField textStoreSPDX22;
private javax.swing.JTextField textStoreSPDX23;
private javax.swing.JTextField textStoreSPDX24;
private javax.swing.JTextField textStoreSPDX25;
private javax.swing.JTextField textStoreSPDX26;
private javax.swing.JTextField textStoreSPDX3;
private javax.swing.JTextField textStoreSPDX31;
private javax.swing.JTextField textStoreSPDX4;
private javax.swing.JTextField textStoreSPDX5;
private javax.swing.JTextField textStoreSPDX6;
private javax.swing.JTextField textStoreSPDX7;
private javax.swing.JTextField textStoreSPDX8;
private javax.swing.JTextField textStoreSPDX9;
// End of variables declaration//GEN-END:variables
}