Java lightning game source code project, java lightning source code
Some code GameFrame. java
Package com. leidian; import java. awt. borderLayout; import javax. swing. JFrame; public class GameFrame extends JFrame {private static final long serialVersionUID = 1L; private GameCanvas canvas = new GameCanvas (); public GameFrame () {canvas. setFocusable (true); canvas. requestFocus (); this. add (canvas, BorderLayout. CENTER);}/*** @ param args */public static void main (String [] args) {GameFrame frame = new GameFrame (); frame. setSize (400,630); frame. setIconImage (Resources. tombPNG); frame. setTitle ("java lightning game"); frame. setdefaclocloseoperation (JFrame. EXIT_ON_CLOSE); frame. setVisible (true );}}
Source code: http://code.662p.com/view/8479.html
:
<Ignore_js_op>
<Ignore_js_op>
<Ignore_js_op>
Http://java.662p.com/thread-2181-1-1.html