|
@@ -305,7 +305,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
305
|
305
|
setLocation(x, y);
|
306
|
306
|
Container cp = getContentPane();
|
307
|
307
|
cp.setLayout(null);
|
308
|
|
- Font font = new Font("Dialog", Font.PLAIN, 13);
|
309
|
308
|
|
310
|
309
|
// ----- 3D Stuff -----
|
311
|
310
|
// --------------------
|
|
@@ -321,7 +320,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
321
|
320
|
final String nameStart = "Layer ";
|
322
|
321
|
editButtons[i].setText(nameStart + (char)('A' + i));
|
323
|
322
|
editButtons[i].setBounds(299, 32 + (35 * i), 102, 29);
|
324
|
|
- editButtons[i].setFont(font);
|
325
|
323
|
cp.add(editButtons[i]);
|
326
|
324
|
editButtons[i].addActionListener(new ActionListener() {
|
327
|
325
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -348,7 +346,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
348
|
346
|
// Add Move Frame Up Button
|
349
|
347
|
frameUp.setBounds(532, 378, 110, 39);
|
350
|
348
|
frameUp.setText("Move up");
|
351
|
|
- frameUp.setFont(font);
|
352
|
349
|
cp.add(frameUp);
|
353
|
350
|
frameUp.addActionListener(new ActionListener() {
|
354
|
351
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -366,7 +363,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
366
|
363
|
// Add Move Frame Down Button
|
367
|
364
|
frameDown.setBounds(532, 558, 110, 39);
|
368
|
365
|
frameDown.setText("Move down");
|
369
|
|
- frameDown.setFont(font);
|
370
|
366
|
cp.add(frameDown);
|
371
|
367
|
frameDown.addActionListener(new ActionListener() {
|
372
|
368
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -384,7 +380,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
384
|
380
|
// Add 'Frame Add' Button
|
385
|
381
|
frameAdd.setBounds(532, 423, 110, 39);
|
386
|
382
|
frameAdd.setText("Add");
|
387
|
|
- frameAdd.setFont(font);
|
388
|
383
|
cp.add(frameAdd);
|
389
|
384
|
frameAdd.addActionListener(new ActionListener() {
|
390
|
385
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -403,7 +398,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
403
|
398
|
// Add button for frame removal
|
404
|
399
|
frameRemove.setBounds(532, 468, 110, 39);
|
405
|
400
|
frameRemove.setText("Remove");
|
406
|
|
- frameRemove.setFont(font);
|
407
|
401
|
cp.add(frameRemove);
|
408
|
402
|
frameRemove.addActionListener(new ActionListener() {
|
409
|
403
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -423,7 +417,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
423
|
417
|
// Add frame rename button
|
424
|
418
|
frameRename.setBounds(532, 513, 110, 39);
|
425
|
419
|
frameRename.setText("Rename");
|
426
|
|
- frameRename.setFont(font);
|
427
|
420
|
cp.add(frameRename);
|
428
|
421
|
frameRename.addActionListener(new ActionListener() {
|
429
|
422
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -446,7 +439,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
446
|
439
|
// Add Move Animation Up Button
|
447
|
440
|
animUp.setBounds(211, 378, 110, 39);
|
448
|
441
|
animUp.setText("Move up");
|
449
|
|
- animUp.setFont(font);
|
450
|
442
|
cp.add(animUp);
|
451
|
443
|
animUp.addActionListener(new ActionListener() {
|
452
|
444
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -464,7 +456,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
464
|
456
|
// Add Move Animation Down Button
|
465
|
457
|
animDown.setBounds(211, 558, 110, 39);
|
466
|
458
|
animDown.setText("Move down");
|
467
|
|
- animDown.setFont(font);
|
468
|
459
|
cp.add(animDown);
|
469
|
460
|
animDown.addActionListener(new ActionListener() {
|
470
|
461
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -482,7 +473,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
482
|
473
|
// Add Rename Animation Button
|
483
|
474
|
animRename.setBounds(211, 513, 110, 39);
|
484
|
475
|
animRename.setText("Rename");
|
485
|
|
- animRename.setFont(font);
|
486
|
476
|
cp.add(animRename);
|
487
|
477
|
animRename.addActionListener(new ActionListener() {
|
488
|
478
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -500,7 +490,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
500
|
490
|
// Add button for adding animations
|
501
|
491
|
animAdd.setBounds(211, 423, 110, 39);
|
502
|
492
|
animAdd.setText("Add");
|
503
|
|
- animAdd.setFont(font);
|
504
|
493
|
cp.add(animAdd);
|
505
|
494
|
animAdd.addActionListener(new ActionListener() {
|
506
|
495
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -519,7 +508,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
519
|
508
|
// Add Animation remove button
|
520
|
509
|
animRemove.setBounds(211, 468, 110, 39);
|
521
|
510
|
animRemove.setText("Remove");
|
522
|
|
- animRemove.setFont(font);
|
523
|
511
|
cp.add(animRemove);
|
524
|
512
|
animRemove.addActionListener(new ActionListener() {
|
525
|
513
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -536,7 +524,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
536
|
524
|
|
537
|
525
|
fullScreenButton.setText("Fullscreen");
|
538
|
526
|
fullScreenButton.setBounds(18, 312, 134, 35);
|
539
|
|
- fullScreenButton.setFont(font);
|
540
|
527
|
cp.add(fullScreenButton);
|
541
|
528
|
fullScreenButton.addActionListener(new ActionListener() {
|
542
|
529
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -570,7 +557,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
570
|
557
|
|
571
|
558
|
playAnimation.setText("Play");
|
572
|
559
|
playAnimation.setBounds(159, 312, 134, 35);
|
573
|
|
- playAnimation.setFont(font);
|
574
|
560
|
cp.add(playAnimation);
|
575
|
561
|
playAnimation.addActionListener(new ActionListener() {
|
576
|
562
|
public void actionPerformed(ActionEvent evt){
|
|
@@ -596,7 +582,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
596
|
582
|
|
597
|
583
|
playAnimationFullscreen.setText("Play");
|
598
|
584
|
playAnimationFullscreen.setBounds(Toolkit.getDefaultToolkit().getScreenSize().width-310, Toolkit.getDefaultToolkit().getScreenSize().height-80, 150, 25);
|
599
|
|
- playAnimationFullscreen.setFont(font);
|
600
|
585
|
playAnimationFullscreen.setVisible(false);
|
601
|
586
|
cp.add(playAnimationFullscreen);
|
602
|
587
|
playAnimationFullscreen.addActionListener(new ActionListener() {
|
|
@@ -622,7 +607,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
622
|
607
|
|
623
|
608
|
frameDuration.setBounds(462, 129, 55, 20);
|
624
|
609
|
frameDuration.setText("Save");
|
625
|
|
- frameDuration.setFont(font);
|
626
|
610
|
cp.add(frameDuration);
|
627
|
611
|
frameDuration.addActionListener(new ActionListener() {
|
628
|
612
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -651,12 +635,10 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
651
|
635
|
animPath.setBounds(417, 281, 228, 20);
|
652
|
636
|
animPath.setEditable(false);
|
653
|
637
|
animPath.setText("Select an animation file...");
|
654
|
|
- animPath.setFont(font);
|
655
|
638
|
cp.add(animPath);
|
656
|
639
|
|
657
|
640
|
load.setBounds(417, 307, 72, 39);
|
658
|
641
|
load.setText("Load");
|
659
|
|
- load.setFont(font);
|
660
|
642
|
cp.add(load);
|
661
|
643
|
load.addActionListener(new ActionListener() {
|
662
|
644
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -682,7 +664,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
682
|
664
|
|
683
|
665
|
save.setBounds(491, 307, 72, 39);
|
684
|
666
|
save.setText("Save");
|
685
|
|
- save.setFont(font);
|
686
|
667
|
cp.add(save);
|
687
|
668
|
save.addActionListener(new ActionListener() {
|
688
|
669
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -703,7 +684,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
703
|
684
|
|
704
|
685
|
saveAs.setBounds(565, 307, 82, 39);
|
705
|
686
|
saveAs.setText("Save As");
|
706
|
|
- saveAs.setFont(font);
|
707
|
687
|
cp.add(saveAs);
|
708
|
688
|
saveAs.addActionListener(new ActionListener() {
|
709
|
689
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -726,12 +706,10 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
726
|
706
|
});
|
727
|
707
|
|
728
|
708
|
serialPortSelector.setBounds(417, 182, 228, 25);
|
729
|
|
- serialPortSelector.setFont(font);
|
730
|
709
|
cp.add(serialPortSelector);
|
731
|
710
|
|
732
|
711
|
upload.setBounds(417, 212, 111, 39);
|
733
|
712
|
upload.setText("Upload");
|
734
|
|
- upload.setFont(font);
|
735
|
713
|
cp.add(upload);
|
736
|
714
|
upload.addActionListener(new ActionListener() {
|
737
|
715
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -744,7 +722,6 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
744
|
722
|
|
745
|
723
|
download.setBounds(534, 212, 111, 39);
|
746
|
724
|
download.setText("Download");
|
747
|
|
- download.setFont(font);
|
748
|
725
|
cp.add(download);
|
749
|
726
|
download.addActionListener(new ActionListener() {
|
750
|
727
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -757,17 +734,14 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
757
|
734
|
|
758
|
735
|
frameLengthLabel.setBounds(420, 97, 130, 13);
|
759
|
736
|
frameLengthLabel.setText("Time (1/24 sec)");
|
760
|
|
- frameLengthLabel.setFont(font);
|
761
|
737
|
cp.add(frameLengthLabel);
|
762
|
738
|
|
763
|
739
|
frameLengthText.setBounds(419, 129, 40, 20);
|
764
|
|
- frameLengthText.setFont(font);
|
765
|
740
|
cp.add(frameLengthText);
|
766
|
741
|
|
767
|
742
|
|
768
|
743
|
remainingLabel.setBounds(530, 113, 90, 13);
|
769
|
744
|
remainingLabel.setText("Remaining:");
|
770
|
|
- remainingLabel.setFont(font);
|
771
|
745
|
cp.add(remainingLabel);
|
772
|
746
|
|
773
|
747
|
durationSlider.setBounds(417, 108, 110, 23);
|
|
@@ -777,10 +751,7 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
|
777
|
751
|
frameRemaining.setBounds(530, 129, 49, 20);
|
778
|
752
|
frameRemaining.setEditable(false);
|
779
|
753
|
frameRemaining.setText(String.valueOf(worker.memoryRemaining()));
|
780
|
|
- frameRemaining.setFont(font);
|
781
|
754
|
cp.add(frameRemaining);
|
782
|
|
- animList.setFont(font);
|
783
|
|
- frameList.setFont(font);
|
784
|
755
|
|
785
|
756
|
previewPanel.setBounds(8, 12, 399, 342);
|
786
|
757
|
previewPanel.setBorder(BorderFactory.createTitledBorder("Preview"));
|