Skip to content

Instantly share code, notes, and snippets.

@oscarryz
Created June 1, 2011 04:26
Show Gist options
  • Save oscarryz/1001783 to your computer and use it in GitHub Desktop.
Save oscarryz/1001783 to your computer and use it in GitHub Desktop.
Te imaginas?
//;http://fxexperience.com/2011/05/maps-in-javafx-2-0/
import ( javafx.application.Application )
import ( javafx.scene.Scene )
import ( javafx.scene.paint.Color )
import ( javafx.scene.web.WebEngine )
import ( javafx.scene.web.WebView )
import ( javafx.stage.Stage )
fxdemo.WebMap : Application {
start( stage: Stage ) {
//; create web engine and view
webEngine = WebEngine(getClass().getResource("googlemap.html").toString())
webView = WebView(webEngine)
//; create scene
stage.setTitle("Web Map")
scene = Scene(webView,1000,700, Color.web("#666970"))
stage.setScene(scene)
//; show stage
stage.setVisible(true)
}
__ main(args: String* ){
Application.launch(args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment