openjfx: How to choose an ARM linux or javafx application

2014-07-28 Thread Prasant J
Hi,

I want to choose an arm linux platform for running my openkfx/oracle
javafx application. I know of the two dependencies (as follows):

- hard float linux BSP
- opengl (es2) with frame buffer support

Is there any other dependencies that one should check before
finalising a ARM system?


I know openjfx supports (or partially supports) the following ARM processors:
- TI OMAP3
- Raspberry
- Freescale iMX6.


It will be very helpful to know the exact list of dependencies.


-Pj


Re: Regarding issue with JavaFX 8 ScrollPane

2014-07-28 Thread Jerome Cambon


Note that there is also an issue related to this, that is only fixed in 
the current Fx repo: RT-37961 
https://javafx-jira.kenai.com/browse/RT-37961
Depending on your scene graph, the 8u20 fix mentioned by Jonathan 
(RT-35554 https://javafx-jira.kenai.com/browse/RT-35554) can be 
enough, or not.


Jerome

On 7/28/14, 3:20 AM, Jonathan Giles wrote:

Sirish,

Try with 8u20 - I just did and it works as expected - the vertical 
scrollbar is at the bottom-most position. This looks like it was a bug 
fixed between 8u5 and 8u20.


-- Jonathan

On 28/07/2014 1:15 p.m., Mong Hang Vo wrote:

Vadala,

I don't have a good answer to your question. So I am adding the 
openjfx-dev@openjdk.java.net alias.


In the future, please send your question to this alias.

Thank you very much,
Mong

Vadala, Sirish wrote:


Hello Hang,



My name is Sirish Vadala, working for Legislative Data Center, 
Sacramento, California. Right now I am working on a project 
implemented on JavaFX 8 (jdk1.8.0_05) and have a quick question on 
one of the UI related issues that my team is facing.




Coming to the issue I am not able to programmatically place the 
ScrollPane's scroll position using setVValue(double) method of 
ScrollPane. For example, if you look at the sample program below, 
the vertical scroll bar position always remains on the top what so 
ever the vValue is set to. Can you please let me know if this is an 
existing issue being worked on or if I am doing something wrong in 
implementation?




I highly appreciate your response at your convenience on this issue.



import java.awt.image.BufferedImage;

import java.io.File;

import java.io.IOException;

import java.util.logging.Level;

import java.util.logging.Logger;

import javafx.application.Application;

import javafx.embed.swing.SwingFXUtils;

import javafx.event.ActionEvent;

import javafx.event.EventHandler;

import javafx.scene.Scene;

import javafx.scene.control.Button;

import javafx.scene.control.ScrollPane;

import javafx.scene.control.ScrollPane.ScrollBarPolicy;

import javafx.scene.image.Image;

import javafx.scene.image.ImageView;

import javafx.scene.layout.VBox;

import javafx.stage.FileChooser;

import javafx.stage.Stage;

import javax.imageio.ImageIO;

public class JavaFXPixel extends Application {


private ImageView myImageView;

private ScrollPane scrollPane;


@Override

public void start(Stage primaryStage) {


Button btnLoad = new Button(Load);

btnLoad.setOnAction(btnLoadEventListener);


myImageView = new ImageView();


scrollPane = new ScrollPane();

scrollPane.setPrefSize(300, 250);

scrollPane.setVbarPolicy(ScrollBarPolicy.AS_NEEDED);

scrollPane.setHbarPolicy(ScrollBarPolicy.AS_NEEDED);

scrollPane.setContent(myImageView);


   // STILL MY VERTICAL SCROLL POSITION IS ALWAYS PLACED ON THE TOP

scrollPane.setVvalue(1.0);


VBox rootBox = new VBox();

rootBox.getChildren().addAll(btnLoad, scrollPane);


Scene scene = new Scene(rootBox, 300, 300);


primaryStage.setTitle(My Test Program);

primaryStage.setScene(scene);

primaryStage.show();


}

public static void main(String[] args) {

launch(args);

}


private final EventHandlerActionEvent btnLoadEventListener = 
(ActionEvent t) - {


FileChooser fileChooser = new FileChooser();


//Set extension filter

FileChooser.ExtensionFilter extFilterJPG = new 
FileChooser.ExtensionFilter(JPG files (*.jpg), *.JPG);


FileChooser.ExtensionFilter extFilterPNG = new 
FileChooser.ExtensionFilter(PNG files (*.png), *.PNG);


fileChooser.getExtensionFilters().addAll(extFilterJPG, 
extFilterPNG);



//Show open file dialog

File file = fileChooser.showOpenDialog(null);


try {

BufferedImage bufferedImage = ImageIO.read(file);

Image image = SwingFXUtils.toFXImage(bufferedImage, null);

myImageView.setImage(image);

scrollPane.setContent(null);

scrollPane.setContent(myImageView);

scrollPane.setVvalue(1.0);

} catch (IOException ex) {

Logger.getLogger(JavaFXPixel.class.getName()).log(Level.SEVERE, 
null, ex);


}

};

}



Thanks.

Sirish Vadala

916 341 8878









Re: Double.MAX_VALUE in CSS -fx-max-width?

2014-07-28 Thread Werner Lehmann

Hi David,

thanks - here it is:

[#RT-38065] CSS -fx-pref-width et al do not accept infinity value

Werner

On 28.07.2014 05:31, David Grieve wrote:

Hi Werner,

Please file a bug. I'll have to update the parser to accept 'infinity'
as a value.


hg: openjfx/8u-dev/rt: [SCENEBUILDER] Fix for DTL-6789: Inspector might ensure values for hValue / vValue on ScrollPane are within bounds

2014-07-28 Thread jerome . cambon
Changeset: af217a8598ef
Author:Jerome Cambon
Date:  2014-07-28 10:34 +0200
URL:   http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/af217a8598ef

[SCENEBUILDER] Fix for DTL-6789: Inspector might ensure values for hValue / 
vValue on ScrollPane are within bounds

! 
apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/editor/panel/inspector/InspectorPanelController.java
! 
apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/editor/panel/inspector/editors/BoundedDoubleEditor.java
! 
apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/editor/panel/inspector/editors/Editor.java



Re: In(Sanity) Testing Mondays

2014-07-28 Thread David Hill


Here's a build for today's testing:

http://jfx.us.oracle.com/hudson/job/8u-dev/1130/


Wiki: https://wiki.openjdk.java.net/display/OpenJFX/8u20


On 7/25/14, 5:03 PM, Lisa Selle wrote:

Reminder, Monday is our weekly sanity testing.

You can find your testing assignment at:

https://wiki.openjdk.java.net/display/OpenJFX/Sanity+Testing

Also please remember that the repo will be locked from 1am PDT until 1pm PDT.

Happy testing!

Lisa



--
David Hilldavid.h...@oracle.com
Java Embedded Development

A man's feet should be planted in his country, but his eyes should survey the 
world.
-- George Santayana (1863 - 1952)



hg: openjfx/8u-dev/rt: RT-37914: [Linux] JavaFX Media does not run on Ubuntu 14.04

2014-07-28 Thread kirill . kirichenko
Changeset: df28c1bdf2e1
Author:stayer
Date:  2014-07-28 19:25 +0400
URL:   http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/df28c1bdf2e1

RT-37914: [Linux] JavaFX Media does not run on Ubuntu 14.04

! build.gradle
! 
modules/media/src/main/native/gstreamer/gstreamer-lite/gstreamer/gst/gstregistry.c
! modules/media/src/main/native/gstreamer/projects/linux/avplugin/Makefile



Re: hg: openjfx/8u-dev/rt: RT-37914: [Linux] JavaFX Media does not run on Ubuntu 14.04

2014-07-28 Thread Kevin Rushforth

Kirill,

As a reminder, we are frozen for sanity testing every Monday from 1am - 
1pm Pacific. This changeset should not have been pushed today.


-- Kevin


kirill.kiriche...@oracle.com wrote:

Changeset: df28c1bdf2e1
Author:stayer
Date:  2014-07-28 19:25 +0400
URL:   http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/df28c1bdf2e1

RT-37914: [Linux] JavaFX Media does not run on Ubuntu 14.04

! build.gradle
! 
modules/media/src/main/native/gstreamer/gstreamer-lite/gstreamer/gst/gstregistry.c
! modules/media/src/main/native/gstreamer/projects/linux/avplugin/Makefile

  


Re: 8u20 broken in OS X Yosemite?

2014-07-28 Thread Kevin Rushforth
Good to hear. We are doing some testing with Yosemite, but it is 
somewhat limited testing at this point.


-- Kevin


Scott Palmer wrote:

Just to follow up.. things are not as dire as I initially thought.  After a
reboot my application is working much better.


On Sun, Jul 27, 2014 at 12:59 PM, Scott Palmer swpal...@gmail.com wrote:

  

Is anyone testing on Yosemite?  I installed the Yosemite public beta and
am running with 8u20 b23 (also tested with 8u11, same results)

Without violating my Beta Agreement with Apple, lets just say that I
strongly suggest that someone at Oracle try it out and perhaps focus on:
-AudioClips
-MediaPlayer
-Animation performance

Scott




Re: 8u20 broken in OS X Yosemite?

2014-07-28 Thread Stephen F Northover

Scott and everyone else,

Please report Yosemite bugs as soon as you find them.

Thanks,
Steve

On 2014-07-28, 12:01 PM, Kevin Rushforth wrote:
Good to hear. We are doing some testing with Yosemite, but it is 
somewhat limited testing at this point.


-- Kevin


Scott Palmer wrote:
Just to follow up.. things are not as dire as I initially thought.  
After a

reboot my application is working much better.


On Sun, Jul 27, 2014 at 12:59 PM, Scott Palmer swpal...@gmail.com 
wrote:


Is anyone testing on Yosemite?  I installed the Yosemite public beta 
and

am running with 8u20 b23 (also tested with 8u11, same results)

Without violating my Beta Agreement with Apple, lets just say that I
strongly suggest that someone at Oracle try it out and perhaps focus 
on:

-AudioClips
-MediaPlayer
-Animation performance

Scott





[8u40] Review request: RT-38074: [macosx] Separate QTKit platform code from core media code so it can be removed for MAS

2014-07-28 Thread David DeHaven

JIRA:
https://javafx-jira.kenai.com/browse/RT-38074

Webrev:
http://cr.openjdk.java.net/~ddehaven/RT-38074/rt.0/

This change moves the QTKit based media platform code into it's own dylib. 
NativeMediaManager had to be modified to allow detection of the new library to 
determine if the platform was available or not. There may be a slight 
performance impact due to loading the native libs sooner, but the bulk of the 
initialization is still done at a later time.

-DrD-



Milestone moved: M1 is now Aug 11, 2014

2014-07-28 Thread Stephen F Northover

Hi all,

This week (July 28) is the week before M1 milestone (Aug 4) so we should 
be ramping down (ie. extra +1 restrictions for committing code, 
more/better testing, etc.).  Since this is the first milestone for 8u40 
and there important API deadlines, I spoke with Kevin and we agreed to 
move M1 back a week to Aug 11 to give us a bit more time before the ramp 
down.


I have updated the wiki: https://wiki.openjdk.java.net/display/OpenJFX/8u40

Steve


hg: openjfx/8u/rt: 31 new changesets

2014-07-28 Thread kevin . rushforth
Changeset: 163d0f848fe3
Author:Felipe Heidrich felipe.heidr...@oracle.com
Date:  2014-07-21 13:53 -0700
URL:   http://hg.openjdk.java.net/openjfx/8u/rt/rev/163d0f848fe3

RT-37964: [Accessibility] implement a set focus action

! 
modules/controls/src/main/java/com/sun/javafx/scene/control/skin/PaginationSkin.java
! 
modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TabPaneSkin.java
! modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java
! modules/graphics/src/main/java/com/sun/glass/ui/win/WinAccessible.java
! modules/graphics/src/main/java/javafx/scene/AccessibleAction.java
! modules/graphics/src/main/java/javafx/scene/AccessibleRole.java
! modules/graphics/src/main/java/javafx/scene/Node.java

Changeset: 2214ba6b2de6
Author:Felipe Heidrich felipe.heidr...@oracle.com
Date:  2014-07-21 13:56 -0700
URL:   http://hg.openjdk.java.net/openjfx/8u/rt/rev/2214ba6b2de6

RT-37959: [Accessibility] Review a11y enums
Part 1: remove SELECTED_PAGE and SELECTED_TAB, use FOCUS_ITEM instead

! 
modules/controls/src/main/java/com/sun/javafx/scene/control/skin/PaginationSkin.java
! 
modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TabPaneSkin.java
! modules/controls/src/main/java/javafx/scene/control/TabPane.java
! modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java
! modules/graphics/src/main/java/com/sun/glass/ui/win/WinAccessible.java
! modules/graphics/src/main/java/javafx/scene/AccessibleAttribute.java

Changeset: 7d0df3525553
Author:Felipe Heidrich felipe.heidr...@oracle.com
Date:  2014-07-21 14:42 -0700
URL:   http://hg.openjdk.java.net/openjfx/8u/rt/rev/7d0df3525553

[Accessible] improve description for titlePane (which was group) and page item 
(which was tab item) similarly to what was done for Mac (+cosmetic changes)

! 
modules/controls/src/main/java/com/sun/javafx/scene/control/skin/PaginationSkin.java
! modules/graphics/src/main/java/com/sun/glass/ui/win/WinAccessible.java

Changeset: 78f2a4568178
Author:Felipe Heidrich felipe.heidr...@oracle.com
Date:  2014-07-21 15:07 -0700
URL:   http://hg.openjdk.java.net/openjfx/8u/rt/rev/78f2a4568178

[Accessible] missing break

! modules/graphics/src/main/java/com/sun/glass/ui/win/WinAccessible.java

Changeset: a37c4730f5bd
Author:Felipe Heidrich felipe.heidr...@oracle.com
Date:  2014-07-21 15:10 -0700
URL:   http://hg.openjdk.java.net/openjfx/8u/rt/rev/a37c4730f5bd

[Accessible] removing attributes that were just in for documentation, they were 
incomplete and at times just wrong

! 
modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ComboBoxListViewSkin.java
! 
modules/controls/src/main/java/com/sun/javafx/scene/control/skin/MenuBarSkin.java
! 
modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TableViewSkin.java
! modules/controls/src/main/java/javafx/scene/control/ComboBoxBase.java
! modules/controls/src/main/java/javafx/scene/control/ListView.java
! modules/controls/src/main/java/javafx/scene/control/ScrollPane.java
! modules/controls/src/main/java/javafx/scene/control/TableRow.java
! modules/controls/src/main/java/javafx/scene/control/TableView.java
! modules/controls/src/main/java/javafx/scene/control/TreeTableView.java
! modules/controls/src/main/java/javafx/scene/control/TreeView.java

Changeset: 0d4772d30a1a
Author:jgiles
Date:  2014-07-22 11:46 +1200
URL:   http://hg.openjdk.java.net/openjfx/8u/rt/rev/0d4772d30a1a

[TEST ONLY] @Ignore all LocalTimeSpinnerValueTests until they can be made more 
resilient

! modules/controls/src/test/java/javafx/scene/control/SpinnerTest.java

Changeset: a101d302eb00
Author:Felipe Heidrich felipe.heidr...@oracle.com
Date:  2014-07-21 16:52 -0700
URL:   http://hg.openjdk.java.net/openjfx/8u/rt/rev/a101d302eb00

[Accessibility] Regression. The content of list items and tree items are being 
read twice, caused by the accidental removal of a 'return null;' statement in 
http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/a002de38e467

! modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java

Changeset: 23c345e7ea20
Author:Martin Sladecek martin.slade...@oracle.com
Date:  2014-07-22 07:30 +0200
URL:   http://hg.openjdk.java.net/openjfx/8u/rt/rev/23c345e7ea20

RT-37994 [FXML] ProxyBuilder does not support read-only collections

! modules/fxml/src/main/java/com/sun/javafx/fxml/builder/ProxyBuilder.java
+ 
modules/fxml/src/test/java/com/sun/javafx/fxml/builder/ClassWithReadOnlyCollection.java
! modules/fxml/src/test/java/com/sun/javafx/fxml/builder/ProxyBuilderTest.java

Changeset: f07260b4dcda
Author:Rafi Tayar rafi.ta...@oracle.com
Date:  2014-07-22 15:39 +0300
URL:   http://hg.openjdk.java.net/openjfx/8u/rt/rev/f07260b4dcda

RT-37982 : Create a unit test for RT-36241
Reviewed-by : dblaukopf

! tests/system/src/test/java/com/sun/glass/ui/monocle/SimpleMouseTest.java

Changeset: 9d9b35b0e3f6
Author:lisa.se...@oracle.com

Re: JavaFX tuning

2014-07-28 Thread Stephen F Northover

Hi Peter,

Right now it's not possible to turn off modules.  Memory can be consumed 
in all sorts of different places (Java object memory, graphics card 
memory, operating system memory, virtual machine memory).  Did you have 
a case where you were running out and hitting an issue?


Steve

On 2014-07-23, 10:26 AM, Peter Penzov wrote:

Hi,
 What are the options for JavaFX tuning? For example is it possible to
turn off some modules of the framework or some configuration for lowering
the memory consumption?

BR,
Peter




Re: [8u40] Review request: RT-38074: [macosx] Separate QTKit platform code from core media code so it can be removed for MAS

2014-07-28 Thread David DeHaven

Belay that review.. I have some (significant) changes to make, in preparation 
for the larger task of implementing the AVFoundation based code.

-DrD-

 JIRA:
 https://javafx-jira.kenai.com/browse/RT-38074
 
 Webrev:
 http://cr.openjdk.java.net/~ddehaven/RT-38074/rt.0/
 
 This change moves the QTKit based media platform code into it's own dylib. 
 NativeMediaManager had to be modified to allow detection of the new library 
 to determine if the platform was available or not. There may be a slight 
 performance impact due to loading the native libs sooner, but the bulk of the 
 initialization is still done at a later time.
 
 -DrD-
 



Re: [8u40] Review request: RT-38074: [macosx] Separate QTKit platform code from core media code so it can be removed for MAS

2014-07-28 Thread David DeHaven

Kirill, Alexander, Kevin:

New version up for review, please take a look:
http://cr.openjdk.java.net/~ddehaven/RT-38074/rt.1/

I moved OSXPlatform and OSXMediaPlayer code back to jfxmedia, since it was 
meant to be an abstraction point for using either QTKit or AVFoundation in the 
first place.

-DrD-

 
 Belay that review.. I have some (significant) changes to make, in preparation 
 for the larger task of implementing the AVFoundation based code.
 
 -DrD-
 
 JIRA:
 https://javafx-jira.kenai.com/browse/RT-38074
 
 Webrev:
 http://cr.openjdk.java.net/~ddehaven/RT-38074/rt.0/
 
 This change moves the QTKit based media platform code into it's own dylib. 
 NativeMediaManager had to be modified to allow detection of the new library 
 to determine if the platform was available or not. There may be a slight 
 performance impact due to loading the native libs sooner, but the bulk of 
 the initialization is still done at a later time.
 
 -DrD-
 
 



Re: JavaFX Canvas misses API to set dashed line stroke

2014-07-28 Thread David Gilbert
Thanks for the reply.  This is the one I added:

https://javafx-jira.kenai.com/browse/RT-37999

Best regards,
David

On Jul 29, 2014, at 12:46 AM, Stephen F Northover wrote:

 If you have not done so already, please enter a JIRA to request this feature.
 
 Thanks,
 Steve
 
 On 2014-07-22, 5:42 AM, David Gilbert wrote:
 Hello,
 
 I have created a small open source library that provides a bridge from 
 Java2D to the JavaFX Canvas:
 
 https://github.com/jfree/fxgraphics2d
 
 Unfortunately I have so far not been able to support dashed lines, since the 
 GraphicsContext from the JavaFX Canvas doesn't provide any API to set the 
 line dash attributes.  Did I miss something, or is there really no way to 
 specify dashed lines?  I know this is possible in the Shape API 
 (http://docs.oracle.com/javafx/2/api/javafx/scene/shape/Shape.html#getStrokeDashArray())
  but I am specifically interested in drawing dashed lines on the JavaFX 
 Canvas.  Any pointers will be appreciated.
 
 Best regards,
 
 David