FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GitHub Viewer

package dev.webview; public class Example { public static void main(String[] args) { Webview wv = new Webview(true); // Can optionally be created with an AWT component to be painted on. // Calling `await echo(1,2,3)` will return `[1,2,3]` wv.bind("echo", (arguments) -> { return arguments; }); wv.setTitle("My Webview App"); wv.setSize(800, 600); wv.loadURL("https://google.com"); // Run the webview event loop, the webview is fully disposed when this returns. wv.run(); } }

Back | FazBrowse Home | New Git URL