We began to learn world wind Java development by referring to the "Java three-dimensional GIS development Guide CD-ROM" and the official website forum.
First Demo
Base class public class Vge_gfbasicclass extends jframe{protected Worldwindowglcanvas Worldwindowglcanvas;//worldwind Canvas protected StatusBar statusbar;//status bar protected Model modelearth;protected Layerpanel Layerpanel; Layer Board public Vge_gfbasicclass () {//create canvas by specified size Dimension canvassize = new Dimension (+); This.worldwindowglcanvas = New Worldwindowglcanvas (); this.worldWindowGLCanvas.setPreferredSize (canvassize);//Create Earth model and bind to the screen Modelearth = ( Model) worldwind.createconfigurationcomponent (avkey.model_class_name); This.worldWindowGLCanvas.setModel ( Modelearth); This.add (This.worldwindowglcanvas, borderlayout.center);//Add status bar This.statusbar = new StatusBar (); This.add (StatusBar, borderlayout.page_end); This.statusBar.setEventSource (Worldwindowglcanvas);// Show Layers Panel Layerpanel = new Layerpanel (Worldwindowglcanvas); This.add (Layerpanel, borderlayout.west); This.setdefaultcloseoperation (Jframe.exit_on_close); this.setvisible (true); This.setsize (canvasSize);} public static void Main (string[] args) {String strtItle = "....." subsystem "; Vge_gfbasicclass Wwrun = new Vge_gfbasicclass (); Wwrun.settitle (strtitle + ":" + Wwrun.getclass (). GetName ()); }}
Run directly, as follows:
One of world Wind Java development