Re: JDialogs used with a Window
- From: jackroofman@xxxxxxxxx
- Date: 14 Jul 2006 22:56:04 -0700
Almost forgot the Main that gets the ball rolling:
package javarisk;
import java.awt.*;
import javax.swing.*;
/**
* Main executable for game.
* @author Stephen Dahlke
*/
public class Main {
/**
* Main program window; Launches into fullscreen
*/
public Main() {
GameWindow gameWindow = new GameWindow(new JFrame("Java
Risk"));
if (gd.isFullScreenSupported()) {
try {
gd.setFullScreenWindow(gameWindow);
} catch (Exception e) {}
}
}
/**
* Executes the program
*/
public static void main(String[] args) {
new Main();
}
private static GraphicsDevice gd =
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
}
.
- References:
- JDialogs used with a Window
- From: jackroofman
- Re: JDialogs used with a Window
- From: Andrew Thompson
- Re: JDialogs used with a Window
- From: jackroofman
- JDialogs used with a Window
- Prev by Date: Re: JDialogs used with a Window
- Next by Date: Re: JDialogs used with a Window
- Previous by thread: Re: JDialogs used with a Window
- Next by thread: Re: JDialogs used with a Window
- Index(es):
Relevant Pages
|
|