|
@@ -12,6 +12,7 @@ import java.awt.Graphics2D;
|
|
|
import java.awt.image.BufferedImage;
|
|
|
import javax.swing.JFrame;
|
|
|
import javax.swing.JPanel;
|
|
|
+import javax.swing.WindowConstants;
|
|
|
|
|
|
/**
|
|
|
*
|
|
@@ -54,7 +55,7 @@ public class VisualizedGUI extends JFrame implements PlayerStructure
|
|
|
public VisualizedGUI()
|
|
|
{
|
|
|
/*
|
|
|
- setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
|
|
|
+
|
|
|
surface= new EJP();
|
|
|
image = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().
|
|
|
getDefaultConfiguration().createCompatibleImage(x,y);
|
|
@@ -65,6 +66,7 @@ public class VisualizedGUI extends JFrame implements PlayerStructure
|
|
|
// this.add(c);
|
|
|
surface = new Canvas();
|
|
|
surface.setSize(x, y);
|
|
|
+ setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
|
|
|
add(surface);
|
|
|
StreamGUI.player.setPlayerStructure(this);
|
|
|
|
|
@@ -78,7 +80,7 @@ public class VisualizedGUI extends JFrame implements PlayerStructure
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
+ /*
|
|
|
private class EJP extends JPanel
|
|
|
{
|
|
|
private BufferedImage image;
|
|
@@ -100,4 +102,5 @@ public class VisualizedGUI extends JFrame implements PlayerStructure
|
|
|
// You could draw on top of the image here...
|
|
|
}
|
|
|
};
|
|
|
+ */
|
|
|
}
|