Code Review For RT-39755: ScrollPane introduces distortions when scrolling up & down

2015-05-04 Thread Chien Yang

Hi Kevin,

Please review the proposed fix:

JIRA: https://javafx-jira.kenai.com/browse/RT-39755
Webrev: http://cr.openjdk.java.net/~ckyang/RT-39755/webrev.00/

- Chien





8u-dev and 9-dev unlocked following sanity testing

2015-05-04 Thread Kevin Rushforth




Re: JavaFX: WebView/WebEngine doesn't work with OSGI

2015-05-04 Thread Tom Schindl
This most likely is not the problem but I wanted to point out that
launching a JavaFX application this way in the Activator is a bad idea
because you activator#start does not finish and so the bundle will never
get into the active state!

I've not yet run e(fx)clipse on u60 builds (so maybe the webkit changes
broke it) but only on u40 where webview works ok in (Equinox) OSGi and
the way e(fx)clipse integrates JavaFX into OSGi.

Does it work on u40 for you?

Tom

On 04.05.15 15:56, Александр Свиридов wrote:
>  I have two boxes - Centos 7.1 64 and Windows 7 32. Both of them have jre 
> 8.0.60.
> 
> And I have two javafx projects - osgi and not osgi.
> 
> Not OSGI:
> public class MainApp extends Application {
> @Override
> public void start(Stage stage) throws Exception {
> WebView browser = new WebView();
> WebEngine webEngine = browser.getEngine();
> webEngine.load("http://google.com";);
> Scene scene= new Scene(browser,700,500);
> stage.setTitle("JavaFX and Maven");
> stage.setScene(scene);
> stage.show();
> }
> 
> public static void main(String[] args) {
> launch(args);
> }
> }
> This project work at both boxes - one window is created and inside I see 
> google site. Now, OSGI project: I have two classes - activator and program 
> view:
> 
> public class Activator implements BundleActivator {
> public void start(BundleContext context) throws Exception {
>  System.out.println("Hello I am Activator");
> javafx.application.Application.launch(MyProgramView.class);
> }
> 
> public void stop(BundleContext context) throws Exception {
> }
> }
> 
> public class MyProgramView extends Application {
> @Override
> public void start(Stage primaryStage) throws IOException {
> WebView browser = new WebView();
> WebEngine webEngine = browser.getEngine();
> webEngine.load("http://mail.ru";);
> Scene scene= new Scene(browser,700,500);
> primaryStage.setTitle("JavaFX and Maven");
> primaryStage.setScene(scene);
> primaryStage.show();
> }
> }
> 
> This is OUTPUT:
> Hello I am Activator
> Prism pipeline init order: es2 sw 
> Using java-based Pisces rasterizer
> Using dirty region optimizations
> Not using texture mask for primitives
> Not forcing power of 2 sizes for textures
> Using hardware CLAMP_TO_ZERO mode
> Opting in for HiDPI pixel scaling
> Prism pipeline name = com.sun.prism.es2.ES2Pipeline
> Loading ES2 native library ... prism_es2
> succeeded.
> GLFactory using com.sun.prism.es2.X11GLFactory
> (X) Got class = class com.sun.prism.es2.ES2Pipeline
> Initialized prism pipeline: com.sun.prism.es2.ES2Pipeline
> Maximum supported texture size: 8192
> Maximum texture size clamped to 4096
> Non power of two texture support = true
> Maximum number of vertex attributes = 16
> Maximum number of uniform vertex components = 16384
> Maximum number of uniform fragment components = 16384
> Maximum number of varying components = 60
> Maximum number of texture units usable in a vertex shader = 16
> Maximum number of texture units usable in a fragment shader = 16
> Graphics Vendor: nouveau
>Renderer: Gallium 0.4 on NVAA
> Version: 3.0 Mesa 10.2.7
>  vsync: true vpipe: true
> ES2ResourceFactory: Prism - createStockShader: Solid_TextureRGB.frag
> ES2ResourceFactory: Prism - createStockShader: FillPgram_Color.frag
> 
> A window is created, its title = "JavaFX and Maven" but inside nothing - I 
> mean a empty white area. I checked at both boxes. What's wrong and how to 
> solve it?
> 


-- 
Thomas Schindl, CTO
BestSolution.at EDV Systemhaus GmbH
Eduard-Bodem-Gasse 5-7, A-6020 Innsbruck
http://www.bestsolution.at/
Reg. Nr. FN 222302s am Firmenbuchgericht Innsbruck


JavaFX: WebView/WebEngine doesn't work with OSGI

2015-05-04 Thread Александр Свиридов
 I have two boxes - Centos 7.1 64 and Windows 7 32. Both of them have jre 
8.0.60.

And I have two javafx projects - osgi and not osgi.

Not OSGI:
public class MainApp extends Application {
    @Override
    public void start(Stage stage) throws Exception {
    WebView browser = new WebView();
    WebEngine webEngine = browser.getEngine();
    webEngine.load("http://google.com";);
    Scene scene= new Scene(browser,700,500);
    stage.setTitle("JavaFX and Maven");
    stage.setScene(scene);
    stage.show();
    }

    public static void main(String[] args) {
    launch(args);
    }
}
This project work at both boxes - one window is created and inside I see google 
site. Now, OSGI project: I have two classes - activator and program view:

public class Activator implements BundleActivator {
    public void start(BundleContext context) throws Exception {
 System.out.println("Hello I am Activator");
    javafx.application.Application.launch(MyProgramView.class);
    }

    public void stop(BundleContext context) throws Exception {
    }
}

public class MyProgramView extends Application {
    @Override
    public void start(Stage primaryStage) throws IOException {
    WebView browser = new WebView();
    WebEngine webEngine = browser.getEngine();
    webEngine.load("http://mail.ru";);
    Scene scene= new Scene(browser,700,500);
    primaryStage.setTitle("JavaFX and Maven");
    primaryStage.setScene(scene);
    primaryStage.show();
    }
}

This is OUTPUT:
Hello I am Activator
Prism pipeline init order: es2 sw 
Using java-based Pisces rasterizer
Using dirty region optimizations
Not using texture mask for primitives
Not forcing power of 2 sizes for textures
Using hardware CLAMP_TO_ZERO mode
Opting in for HiDPI pixel scaling
Prism pipeline name = com.sun.prism.es2.ES2Pipeline
Loading ES2 native library ... prism_es2
    succeeded.
GLFactory using com.sun.prism.es2.X11GLFactory
(X) Got class = class com.sun.prism.es2.ES2Pipeline
Initialized prism pipeline: com.sun.prism.es2.ES2Pipeline
Maximum supported texture size: 8192
Maximum texture size clamped to 4096
Non power of two texture support = true
Maximum number of vertex attributes = 16
Maximum number of uniform vertex components = 16384
Maximum number of uniform fragment components = 16384
Maximum number of varying components = 60
Maximum number of texture units usable in a vertex shader = 16
Maximum number of texture units usable in a fragment shader = 16
Graphics Vendor: nouveau
   Renderer: Gallium 0.4 on NVAA
    Version: 3.0 Mesa 10.2.7
 vsync: true vpipe: true
ES2ResourceFactory: Prism - createStockShader: Solid_TextureRGB.frag
ES2ResourceFactory: Prism - createStockShader: FillPgram_Color.frag

A window is created, its title = "JavaFX and Maven" but inside nothing - I mean 
a empty white area. I checked at both boxes. What's wrong and how to solve it?