import
javafx.application.Application;
import
javafx.scene.Scene;
import
javafx.scene.control.*;
import
javafx.scene.layout.*;
import
javafx.stage.Stage;
import
javafx.event.ActionEvent;
import
javafx.event.EventHandler;
import
javafx.scene.canvas.*;
import
javafx.scene.web.*;
import
javafx.scene.Group;
public
class
webview_2
extends
Application {
public
void
start(Stage stage)
{
try
{
stage.setTitle(
"creating Webview"
);
WebView w =
new
WebView();
WebEngine e = w.getEngine();
w.setFontScale(
1
.5f);
w.setZoom(
0.8
);
Scene scene =
new
Scene(w, w.getPrefWidth(),
w.getPrefHeight());
stage.setScene(scene);
stage.show();
}
catch
(Exception e) {
System.out.println(e.getMessage());
}
}
public
static
void
main(String args[])
{
launch(args);
}
}