automatically switch to fullscreen
This commit is contained in:
@@ -6,12 +6,14 @@ import java.util.logging.Logger;
|
||||
public class Boot {
|
||||
|
||||
public static final Logger logger = Logger.getLogger("JDGame2D");
|
||||
public static JFrame window;
|
||||
|
||||
static void main() {
|
||||
JFrame window = new JFrame();
|
||||
window = new JFrame();
|
||||
window.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
|
||||
window.setResizable(false);
|
||||
window.setTitle("JGame2D");
|
||||
window.setUndecorated(true);
|
||||
|
||||
GamePanel gamePanel = new GamePanel();
|
||||
window.add(gamePanel);
|
||||
|
||||
Reference in New Issue
Block a user