Browse Source

Removed font. It was the default one.

Thomas Buck 12 years ago
parent
commit
0795b49d18
1 changed files with 0 additions and 29 deletions
  1. 0
    29
      CubeControl/Frame.java

+ 0
- 29
CubeControl/Frame.java View File

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

Loading…
Cancel
Save