Skip to content

lofidewanto/jsinterop-simple-native-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsinterop-simple-native-example

Simple Example for Accessing JavaScript APIs from Java (JsInterop "Native")

This example uses GWT Boot as Starter Parent: https://github.com/gwtboot/gwt-boot-samples

Take a look at this article to see the whole story: http://bit.ly/WebBrowserGWTJsInteropNative

Build Status

Build example

To build the example:

mvn clean package

To run the example:

  1. First: run the GWT Dev Mode:
mvn gwt:generate-module gwt:devmode
  1. Second: open your browser and go to following address:
http://127.0.0.1:8888/calculator/
  1. GWT Dev Mode supports automatic transpiling. You just need to update your Java code in your IDE and reload your web browser. Your Java code will be automatically transpiled and your webapp stays uptodate without restarting the web server. If you change the index.html you need to push the restart button on the Swing GUI.

About

Simple Example for Accessing JavaScript APIs from Java (Native JsInterop)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published