Browse Source

added missing "exit fullscreen"

hutattedonmyarm 12 years ago
parent
commit
a3e43b0c3f
2 changed files with 13 additions and 0 deletions
  1. BIN
      CubeControl/CubeControlMac.jar
  2. 13
    0
      CubeControl/FullscreenWindow.java

BIN
CubeControl/CubeControlMac.jar View File


+ 13
- 0
CubeControl/FullscreenWindow.java View File

@@ -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
 	}

Loading…
Cancel
Save