JFxPanel is taking the scroll bar automatically .My requirement is to get the current position of the scroll bar in JFxPanel and again i could set the position of the scroll bar in JFxPanel . I am badly stuck here any help is appreciated . To open the html file in JFxPanel , I am using the following code.
try
{
File f1=new File("path upto html file");
Group group= new Group();
Scene scene= new Scene(group);
fxpanel.setScene(scene);
add(fxpanel);
fxpanel.setBounds(0,0,1024,768);
WebEngine eng;
webview = new WebView ();
group.getChildren().add(webview);
webview.setMinSize(500,400);
webview.setMaxSize(500,400);
webview.setVisible(true);
eng= webview.getEngine();
eng.setJavaScriptEnabled(true);
eng.load(f1.toURI().toURL().toString());
}
catch(Exception ex)
{
ex.printStackTrace();
}