Section 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 Thunder Game"); frame.setdefaultcloseoperation (Jframe.exit_on_close); frame.setvisible (True); }}
Source: http://code.662p.com/view/8479.html
:
<ignore_js_op>650) this.width=650; "id=" aimg_708 "class=" Zoom "src=" http://java.662p.com/data/attachment/ Forum/201409/17/233050zo3kqb2bnzqang5t.jpg "width=" 391 "style=" border:0px; "/>
<ignore_js_op>650) this.width=650; "id=" aimg_707 "class=" Zoom "src=" http://java.662p.com/data/attachment/ Forum/201409/17/233045wca6nzwh5wn5niw9.jpg "width=" "style=" border:0px;/>
<ignore_js_op>650) this.width=650; "id=" aimg_709 "class=" Zoom "src=" http://java.662p.com/data/attachment/ Forum/201409/17/233054euhbdjy0uyc0p0gu.jpg "width=" 397 "style=" border:0px; "/>
Detailed Description: http://java.662p.com/thread-2181-1-1.html
Java Lightning Game Source project