|
@@ -9,6 +9,9 @@ import java.io.File;
|
9
|
9
|
public class FullscreenWindow extends JFrame {
|
10
|
10
|
private Container cp = getContentPane();
|
11
|
11
|
private cubeWorker worker;
|
|
12
|
+ private JButton exitButton;
|
|
13
|
+ private int width;
|
|
14
|
+ private int height;
|
12
|
15
|
|
13
|
16
|
public FullscreenWindow (cubeWorker cw) {
|
14
|
17
|
//Basic layout stuff
|
|
@@ -20,6 +23,16 @@ public class FullscreenWindow extends JFrame {
|
20
|
23
|
setResizable(false);
|
21
|
24
|
|
22
|
25
|
worker = cw;
|
|
26
|
+ width = d.width;
|
|
27
|
+ height = d.height;
|
|
28
|
+ exitButton = new JButton("Exit Fullscreen");
|
|
29
|
+ exitButton.setBounds(width-150, height-25, 150, 25);
|
|
30
|
+ exitButton.addActionListener(new ActionListener() {
|
|
31
|
+ public void actionPerformed(ActionEvent evt) {
|
|
32
|
+ dispose();
|
|
33
|
+ }
|
|
34
|
+ });
|
|
35
|
+ cp.add(exitButton);
|
23
|
36
|
|
24
|
37
|
setVisible(true);
|
25
|
38
|
}
|