|
@@ -78,6 +78,7 @@ public class Frame extends JFrame implements ListSelectionListener {
|
78
|
78
|
private JButton fullScreenButton = new JButton();
|
79
|
79
|
private JButton playAnimation = new JButton();
|
80
|
80
|
private JButton exitButton;
|
|
81
|
+ private JButton playAnimationFullscreen = new JButton();
|
81
|
82
|
// Ende Attribute
|
82
|
83
|
|
83
|
84
|
public cubeWorker worker = new cubeWorker();
|
|
@@ -371,7 +372,7 @@ public class Frame extends JFrame implements ListSelectionListener {
|
371
|
372
|
});
|
372
|
373
|
|
373
|
374
|
exitButton = new JButton("Exit Fullscreen");
|
374
|
|
- exitButton.setBounds(Toolkit.getDefaultToolkit().getScreenSize().width-300, Toolkit.getDefaultToolkit().getScreenSize().height-80, 150, 25);
|
|
375
|
+ exitButton.setBounds(Toolkit.getDefaultToolkit().getScreenSize().width-150, Toolkit.getDefaultToolkit().getScreenSize().height-80, 150, 25);
|
375
|
376
|
cp.add(exitButton);
|
376
|
377
|
exitButton.addActionListener(new ActionListener() {
|
377
|
378
|
public void actionPerformed(ActionEvent evt) {
|
|
@@ -390,6 +391,18 @@ public class Frame extends JFrame implements ListSelectionListener {
|
390
|
391
|
}
|
391
|
392
|
});
|
392
|
393
|
|
|
394
|
+ playAnimationFullscreen.setText("Play");
|
|
395
|
+ playAnimationFullscreen.setBounds(Toolkit.getDefaultToolkit().getScreenSize().width-310, Toolkit.getDefaultToolkit().getScreenSize().height-80, 150, 25);
|
|
396
|
+ playAnimationFullscreen.setFont(new Font("Dialog", Font.PLAIN, 13));
|
|
397
|
+ playAnimationFullscreen.setVisible(false);
|
|
398
|
+ cp.add(playAnimationFullscreen);
|
|
399
|
+ playAnimationFullscreen.addActionListener(new ActionListener() {
|
|
400
|
+ public void actionPerformed(ActionEvent evt){
|
|
401
|
+ playAnimation(evt);
|
|
402
|
+ }
|
|
403
|
+ });
|
|
404
|
+
|
|
405
|
+
|
393
|
406
|
frameDuration.setBounds(590, 184, 60, 24);
|
394
|
407
|
frameDuration.setText("OK");
|
395
|
408
|
frameDuration.setFont(new Font("Dialog", Font.PLAIN, 13));
|
|
@@ -595,6 +608,8 @@ public class Frame extends JFrame implements ListSelectionListener {
|
595
|
608
|
System.out.println(w);
|
596
|
609
|
System.out.println(h);
|
597
|
610
|
setSize(w-5, h-30);
|
|
611
|
+
|
|
612
|
+ playAnimationFullscreen.setVisible(true);
|
598
|
613
|
//setSize(Toolkit.getDefaultToolkit().getScreenSize().width, Toolkit.getDefaultToolkit().getScreenSize().height);
|
599
|
614
|
//Y U NO WORK????
|
600
|
615
|
cubeCanvas.setBounds(0,0,Toolkit.getDefaultToolkit().getScreenSize().width-5, Toolkit.getDefaultToolkit().getScreenSize().height-80);
|
|
@@ -602,7 +617,8 @@ public class Frame extends JFrame implements ListSelectionListener {
|
602
|
617
|
}
|
603
|
618
|
public void exitFullscreen(){
|
604
|
619
|
//661, 440
|
605
|
|
- setLocation(0,0);
|
|
620
|
+ playAnimationFullscreen.setVisible(false);
|
|
621
|
+ setLocation(0,0);
|
606
|
622
|
setSize(661, 440);
|
607
|
623
|
ledView.leaveFullscreen();
|
608
|
624
|
cubeCanvas.setBounds(8,8, 250,250);
|