Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaFX WebView programmatically set zoom

Is there a way to programmatically set the zoom on a JavaFX WebView?

like image 740
pranahata Avatar asked Feb 18 '23 04:02

pranahata


1 Answers

API is available in the upcoming JavaFX 8.

webView.setZoom(0.5);

You can download early access build of JDK 8 (which includes FX8) here: http://www.oracle.com/technetwork/java/javase/downloads/ea-jsp-142245.html

like image 127
Sergey Grinev Avatar answered Mar 25 '23 06:03

Sergey Grinev