Re: slightly ot: java9 runtime images

2015-05-07 Thread Tom Schindl
On 07.05.15 14:27, Tom Eugelink wrote: On 7-5-2015 02:15, Danno Ferrin wrote: You can already do some of that today with Java 8 and the Java Packager. You can create a file tree that can be zipped up that includes the runtime and all of the application files, as well as native installers for

Re: slightly ot: java9 runtime images

2015-05-07 Thread Tom Schindl
[...] In 8u40 we added an option to install your application as service or daemon, so you can use the java packager to install your microsoervices. [offtopic] Interesting where is this documented - google did not show up any results? Do I get callbacks in my Java code to react on a

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

Re: Enhancements to 3D for JFX9?

2015-04-24 Thread Tom Schindl
Did you read the reply from Phil in the other thread? There will be a -XX flag in JDK 9 that jigsaw provides to aid in the transition. So you will not have to maintain a JDK9 build but only start with this thread to still access private APIs and this is something you can clearly control if

Re: Enhancements to 3D for JFX9?

2015-04-24 Thread Tom Schindl
kicks all your problems down the road a year or two. The best time to get all this nailed correctly is now. That flag is not likely to be as extensive and durable as everyone is imagining. - Don On 24/04/2015 8:19 AM, Tom Schindl wrote: Did you read the reply from Phil in the other

Re: Private APIs not usable in Java 9?

2015-04-08 Thread Tom Schindl
Hi, in SWT on JavaFX (most likely NOT a common useage of JavaFX): - I had to reside to private-API when it comes to: * text calculations where there is no public API for things like FontMetrics, TextLayout, ... * For some of the direct

What are the plans for Java9?

2015-03-31 Thread Tom Schindl
Hi, Are there any official plans already for Java9? One of the major pain points I see is that the java-packager does not support to set a splash-screen and also ignores the -splash argument who works when launching with java ... . Another very obvious thing at least on all the windows machine

Re: Doubts on KeyCode

2015-03-30 Thread Tom Schindl
there is one keycode named PLUS and another named ADD. One of them refers to the numeric keypad. Scott On Mar 30, 2015, at 6:58 AM, Tom Schindl tom.schi...@bestsolution.at wrote: hi, suppose you have the following code: package application; import javafx.application.Application

Re: Doubts on KeyCode

2015-03-30 Thread Tom Schindl
refers to the numeric keypad. Scott On Mar 30, 2015, at 6:58 AM, Tom Schindl tom.schi...@bestsolution.at mailto:tom.schi...@bestsolution.at wrote: hi, suppose you have the following code: package application; import

Doubts on KeyCode

2015-03-30 Thread Tom Schindl
hi, suppose you have the following code: package application; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.TextField; import javafx.scene.layout.BorderPane; import javafx.stage.Stage; public class Main extends Application {

Re: QML vs. FXML

2015-03-05 Thread Tom Schindl
Hi, First of all by default FXGraph compiles to FXML, that's also the reason why we currently don't allow you to write event-handlers inside the FXGraph file (from a technical point of view there's no reason why we should not be able to do that) but that would render us incompatible with FXML.

Warning message when shuting down JavaFX app on OS-X

2015-02-09 Thread Tom Schindl
Hi, If I remember correctly the bug leading to Java has been detached already, but someone is still trying to use it at -[GlassRunnable run]:/HUDSON/workspace/8u40/label/macosx-universal-30/rt/modules/graphics/src/main/native-glass/mac/GlassApplication.m:93 Java has been detached already,

Re: Scroll events fired in TableView although there is nothing to scroll

2015-01-24 Thread Tom Schindl
[sorry sent the other mail too early] Hi, I don't really see why you need to know about this all view classes are virtual so a TableCell, ListCell is only requested when shown - and then reused. IIRC this virtuallity is row based only but the otn request also only talks about rows. One more

Re: Scroll events fired in TableView although there is nothing to scroll

2015-01-24 Thread Tom Schindl
I don't really see why you need to know about this all view classes are virtual so a TableCell, ListCell is only requested when shown - and then reused - IIRC this virtuallity is row based only but the otn request also only talks about rows. Tom Von meinem iPhone gesendet Am 24.01.2015 um

Re: Font rendering (on OS-X)

2015-01-12 Thread Tom Schindl
, Tom Schindl wrote: Hi, I uploaded it to youtube let's hope you can see it there. http://youtu.be/jcrWRup6sxI First of all I can accept that the DEF are slightly shifted when I split the string but what I really don't fully grasp is why DE don't shift with a font-size of 25 but only F

Scrollbars on *View or better VirtualFlow based UI elements

2014-12-15 Thread Tom Schindl
Hi, The constant hiding of the horizontal (ListView TreeView) and vertical (TreeView) makes the interaction with the control very noisy because the viewport size always changes e.g. when expanding collapsing and or e.g. scrolling a list with cells of different sizes. The native UI-Toolkits (at

Re: Permutation of scene graph children

2014-12-02 Thread Tom Schindl
I'd rather like to see ObservableList.move()/swap() which since we now have Java8 this could be implemented as a default methods. I think what you can do to make the swap only fire one event is to use Object[] data = l.toArray(); // reorder l.setAll(data); Tom On 02.12.14 06:33, Anirvan

Re: Text.getImpl_caretShape returns strange results under certain conditions

2014-11-24 Thread Tom Schindl
week). Regards, Felipe On Nov 23, 2014, at 11:04 AM, Tom Schindl tom.schi...@bestsolution.at wrote: Hi, I was debugging a problem in my StyledText-Source editor today and found one of my layout problems is that ListCells (the inner representation of the editor lines is simply

Re: British english on JavaFX controls

2014-10-16 Thread Tom Schindl
Looking at the com/sun/javafx/scene/control/skin/resources/controls package there's not extra properties file for en nor one for en_UK. Wild guess you can fix this is that you put such a properties file in exactly this package of of your application and it will be picked up. Tom On 16.10.14

Re: British english on JavaFX controls

2014-10-16 Thread Tom Schindl
On Oct 16, 2014, at 8:34 AM, Tom Schindl tom.schi...@bestsolution.at wrote: Looking at the com/sun/javafx/scene/control/skin/resources/controls package there's not extra properties file for en nor one for en_UK. Wild guess you can fix this is that you put such a properties file in exactly

Re: British english on JavaFX controls

2014-10-16 Thread Tom Schindl
On 16.10.14 16:15, Tom Schindl wrote: Ok - it ResourceBundle.getBundle() uses the classloader of the caller which means the ExtensionClassloader so having the additional properties in your local dir does help. does NOT help! Tom

Re: Separating observable data structures out into a separate library?

2014-09-21 Thread Tom Schindl
There is a java6 compatible version available as part of javafx-ports Tom Von meinem iPhone gesendet Am 21.09.2014 um 15:06 schrieb Mike Hearn m...@plan99.net: Observable data structures are a useful and general abstraction, which JavaFX deploys to great effect. Combined with the mirroring

Re: [8u40] API review: (RT-38192) CSS support for Region as graphicProperty on Labeled

2014-08-07 Thread Tom Schindl
Hi, To me this looks like a none breaking change or do I miss something? Still why not getting more generic and provide FXML as the graphic syntax, the URI could be able to detect this as well, the FXMLLoader naturally should never ever be load a controller when it is used from inside an CSS.

Re: [API REVIEW REQUEST] RT-19659 - [TabPane] Support for draggable tabs

2014-07-31 Thread Tom Schindl
needs to say what kinds of drags (reorder, between tabpanes and drag out) would be hard to create. One don’t want an API with a master switch AND one for each kind of drag IMO. Cheers, Mikael On 30 Jul 2014, at 10:47, Tom Schindl tom.schi...@bestsolution.at wrote: Hi, The proposed API

[API REVIEW REQUEST] RT-19659 - [TabPane] Support for draggable tabs

2014-07-30 Thread Tom Schindl
Hi, I'd like you to review the API proposed to make TabPane Tabs draggable. The proposed public API only allows to put the TabPane in DnD mode: public boolean isDndEnabled() public void setDndEnabled(boolean dndEnabled) public BooleanProperty dndEnabledProperty() Tom

Re: [API REVIEW REQUEST] RT-19659 - [TabPane] Support for draggable tabs

2014-07-30 Thread Tom Schindl
. Le 30 juil. 2014 à 09:35, Tom Schindl tom.schi...@bestsolution.at a écrit : Hi, I'd like you to review the API proposed to make TabPane Tabs draggable. The proposed public API only allows to put the TabPane in DnD mode: public boolean isDndEnabled() public void setDndEnabled(boolean

Re: [API REVIEW REQUEST] RT-19659 - [TabPane] Support for draggable tabs

2014-07-30 Thread Tom Schindl
: BiFunctionTabPane,Tab,Boolean Tom On 30.07.14 10:27, Mikael Grev wrote: That is decidedly awesome! Is there some other way of deciding whether to to do one or the other? I mean one might want to reorder but not drag to another pane. Cheers, Mikael On 30 Jul 2014, at 10:09, Tom Schindl tom.schi

Re: OT: Netbeans ported to JFX?

2014-07-10 Thread Tom Schindl
Hi, I've thrown Eclipse at it [1] - performance is ok but certainly not better than pure SWT but the reason for that is maybe my custom SWT port. What you see is not a rewrite of Eclipse code itself (which is 99% unmodified) but an alternate SWT implementation which has the big draw-back that

Re: hg: openjfx/8u-dev/rt: Take public off StyleablePropertyFactory pending further review of RT-36501: Reduce CssMetaData boilerplate code

2014-06-27 Thread Tom Schindl
The class is showing com.sun.istack.internal.NotNull in it's API! Is this really a good idea? Tom On 26.06.14 21:48, david.gri...@oracle.com wrote: Changeset: 8d41ccb6bcdb Author:David Grievedavid.gri...@oracle.com Date: 2014-06-26 15:47 -0400 URL:

Re: hg: openjfx/8u-dev/rt: Take public off StyleablePropertyFactory pending further review of RT-36501: Reduce CssMetaData boilerplate code

2014-06-27 Thread Tom Schindl
What is the correct JIRA? RT-36501 is a completely different entry. Tom On 27.06.14 15:39, Stephen F Northover wrote: Hi Tom, The code got away too soon. Please add your comment to the JIRA so that we can take it into account. Thanks, Steve On 2014-06-27, 6:06 AM, Tom Schindl wrote

Re: Testing accessibility / sample apps

2014-06-25 Thread Tom Schindl
I think you also need to spec the native-dlls location else there's the chance of a mismatch because the dlls are loaded from the JRE and might not match the java-classes. Tom On 25.06.14 16:51, Kevin Rushforth wrote: I usually add jfxrt.jar to the bootclasspath, but as long as you have

Re: SceneBuilder 2.0 import custom components from Ja

2014-06-09 Thread Tom Schindl
Maybe it should but to me your use of default-methods in interfaces looks very odd and you should maybe rethink! Tom On 09.06.14 11:06, Lidierth, Malcolm wrote: Scene Builder presently displays menu items where there is a public setter/getter for a class. Should it also display them when

Re: Ugly flashing when opening a css-styled stage

2014-06-02 Thread Tom Schindl
To rule out CSS is the reason you could directly set the background: pane.setBackground(new Background(new BackgroundFill(Color.rgb(54, 54, 54), CornerRadii.EMPTY, Insets.EMPTY))); Does that improve the situation? Tom On 02.06.14 09:51, Robert Krüger wrote: Thanks but it does not seem to

Re: CSS vs API modifications in *View classes

2014-05-29 Thread Tom Schindl
. Of course, this is one of those tricks that you have to be in-the-know to make use of. But I would argue that restoreInitialPropertyState() is also a trick that you have to be in-the-know to make use of. On 5/28/14, 6:35 AM, Tom Schindl wrote: Hi, All views in JavaFX are virtual

CSS vs API modifications in *View classes

2014-05-28 Thread Tom Schindl
Hi, All views in JavaFX are virtual and the Cell instances are reused but this brings with it the problem that if you once modified a CSS styleable value (e.g. the textfill, font, ...) you are unable to return to a state where a CSS could be applied. I think Cell needs to provide reset methods

Re: Bad performance with Canvas and extensive clipping

2014-05-27 Thread Tom Schindl
, are you using 8.0 for those tests? The screenshot may be because the snapshot and robot mechanisms may not be retina-aware yet. I don't think there are significant differences in the font technologies between J2D and FX... ...jim On 5/24/14 6:54 AM, Tom Schindl wrote: Hi

Re: Bad performance with Canvas and extensive clipping

2014-05-27 Thread Tom Schindl
of rectangular clipping... ...jim On 5/23/14 5:46 PM, Tom Schindl wrote: Hi, As an experiment I've now written a SWT-GC implementation using a BufferedImage Graphics2D and transfering the pixels over to JavaFX and the performance is as it is with native SWT. I always thought Canvas

Re: Bad performance with Canvas and extensive clipping

2014-05-24 Thread Tom Schindl
On 24.05.14 02:46, Tom Schindl wrote: Hi, As an experiment I've now written a SWT-GC implementation using a BufferedImage Graphics2D and transfering the pixels over to JavaFX and the performance is as it is with native SWT. I always thought Canvas works similar to Image and one only draws pixels

Bad performance with Canvas and extensive clipping

2014-05-23 Thread Tom Schindl
Hi, Maybe as some of you might know I've been working since sometime on SWT on JavaFX and to implement direct drawing operations we use JavaFX-Canvas. I've today tried to run a heavy direct drawing grid implementation and it performed very bad because it makes heavy use of clipping. For a grid

Re: Bad performance with Canvas and extensive clipping

2014-05-23 Thread Tom Schindl
, having a dep in my application java.awt is not what I'm aiming at but without acceptable performance in conjunction with clipping it looks like i have to go this route :-( Tom On 23.05.14 23:57, Tom Schindl wrote: In the current usecase it is a rect all time but that's just in this special use

Re: [8u] Review request: (RT-37168) Mention if a property is configurable via CSS in the javadocs.

2014-05-22 Thread Tom Schindl
The real question is why javadoc tag and not a real annotation which would be toolable much easier! Tom On 22.05.14 21:42, David Grieve wrote: Only if someone runs javadoc without adding a -tag css arg, which will result in an 'unknown tag' error. On 5/22/14, 3:35 PM, Stephen F Northover

TabPaneSkin modification of styleable property

2014-05-20 Thread Tom Schindl
Hi, This question is mostly for David but others might be able to support my feeling that TabPaneSkin works against the CSS-Engine inside its initializeTabListener-method where it does something like this: // save and set tab animation to none - as it is not a good idea

Re: TabPaneSkin modification of styleable property

2014-05-20 Thread Tom Schindl
)openTabAnimation).applyStyle(prevOpenOrigin, prevOpenAnimation); ((StyleablePropertyTabAnimation)closeTabAnimation).applyStyle(prevCloseOrigin, prevCloseAnimation); getSkinnable().getSelectionModel().select(selTab); On 5/20/14, 7:26 AM, Tom Schindl wrote: Hi, This question is mostly for David

Re: TabPaneSkin modification of styleable property

2014-05-20 Thread Tom Schindl
, value). I wish there was some way of knowing that the setXXX is happening inside library code so this kind of usage wasn't an issue. It would be best to have a bug to track this. On 5/20/14, 8:45 AM, Tom Schindl wrote: Would it be better to simply use a boolean flag instead of modifing

Re: Javadoc: docklet, properties, getters and setters

2014-05-17 Thread Tom Schindl
Hi, Generally speaking I have to say that I'm not really a fan of this javafx-properties additions: a) IDEs now need to be taught this special case to show JavaFX javadoc on hover - Eclipse does that we Luna not sure others understand that pattern yet b) Inconsistent pattern useage -

Re: Javadocs and CSS

2014-05-16 Thread Tom Schindl
Well that would work for properties on controls but many of them are in the Skin classes and those could be different from platform to platform and theme to theme and so are an implementation detail. Tom Von meinem iPhone gesendet Am 16.05.2014 um 16:38 schrieb Scott Palmer

Embedding JavaFX in SWT on Linux (Gtk3)

2014-05-14 Thread Tom Schindl
Hi, Starting with Eclipse Luna (released in end of June) the default mode of SWT on Linux is to make use of Gtk3. As far as I understand the situation Glass on Linux is linked against Gtk2 so JavaFX components that need glass (=fairly everything beside javafx-properties) will fail to load - in

Re: Embedding JavaFX in SWT on Linux (Gtk3)

2014-05-14 Thread Tom Schindl
ran ldd for libjfxwebkit.so, and I see that it doesn't link to GTK libraries. However, libjfxmedia.so does, so if you play any media files (either directly, or on a webpage open in webkit), then the GTK2 libraries will be loaded. -- best regards, Anthony On 5/14/2014 4:54 PM, Tom

Re: Embedding JavaFX in SWT on Linux (Gtk3)

2014-05-14 Thread Tom Schindl
use of GTK to RT-35264. Steve On 2014-05-14 8:54 AM, Tom Schindl wrote: Hi, Starting with Eclipse Luna (released in end of June) the default mode of SWT on Linux is to make use of Gtk3. As far as I understand the situation Glass on Linux is linked against Gtk2 so JavaFX components

Dragboard#setDragViewOffsetX/Y limitations

2014-05-12 Thread Tom Schindl
Hi, Using Dragboard#setDragViewOffsetX/Y allows me to offset the drag image but it looks like this x/y is constrainted to the image.width/2 image.height/2. Is this OS specific, a general limitation or a bug? If it is 1 or 2 I think information on that in the JavaDoc would help understand that.

Re: Setup IDE for development instructions

2014-05-07 Thread Tom Schindl
into this way back when. Initially, the repo was in the workspace, but having outside allows is how most people develop and so I moved it out. Steve On 2014-04-28 4:45 PM, Tom Schindl wrote: Hi, Just to finish this. The real problem with is that I've clone the hg-repo directly to my

Getting some interesting output on master

2014-05-07 Thread Tom Schindl
Hi, I'm getting some interesting outputs/errors when running on 8u-dev/rt: a) When I shutdown i sometimes get Java has been detached already, but someone is still trying to use it at -[GlassRunnable

Re: Cleaning up Control codebase - How to deal with StyleableProperty cast

2014-05-02 Thread Tom Schindl
warnings far more obvious to me, so I'll be trying to keep on top of them also. -- Jonathan On 29/04/2014 9:33 a.m., Tom Schindl wrote: Hi, I've been cleaning up the warnings inside the controls code base and one of the warnings left (beside many generic problems in the *View-classes

Re: Cleaning up Control codebase - How to deal with StyleableProperty cast

2014-05-01 Thread Tom Schindl
, Tom Schindl wrote: Hi, On 29.04.14 14:35, David Grieve wrote: I've found that this works: final StyleableBooleanProperty prop = (StyleableBooleanProperty)focusTraversableProperty(); Right i can confirm that. The problem is that we are then relying even more on the fact

Re: Cleaning up Control codebase - How to deal with StyleableProperty cast

2014-04-30 Thread Tom Schindl
' is significant? I honestly don't know -- Jonathan On 29/04/2014 9:57 a.m., Tom Schindl wrote: Hi, Interesting is that only the Eclipse Java Compiler shows a warning. javac is fine with original code. Let me see what the Eclipse compiler guys have to say about that! Tom On 28.04.14

Re: Cleaning up Control codebase - How to deal with StyleableProperty cast

2014-04-30 Thread Tom Schindl
Hi, On 29.04.14 14:35, David Grieve wrote: I've found that this works: final StyleableBooleanProperty prop = (StyleableBooleanProperty)focusTraversableProperty(); Right i can confirm that. The problem is that we are then relying even more on the fact the upstream code does not

Re: Setup IDE for development instructions

2014-04-28 Thread Tom Schindl
: The default task in build.gradle is sdk so gradle and gradle sdk are equivalent. -- Kevin Tom Schindl wrote: Hi, I once built with gradle sdk maybe that was wrong? Tom On 24.04.14 23:37, Stephen F Northover wrote: Did you build once outside the IDE? Type gradle in the rt directory. Steve

Re: Why can Scene's only be constructed on the UI thread?

2014-04-27 Thread Tom Schindl
tooltips and context menus matter? Is it because they will later be instantiated on the wrong thread when they pop up? On 27 Apr 2014, at 7:04, Tom Schindl tom.schi...@bestsolution.at wrote: If you don't use Tooltips context menus you can construct the scenegraph in any thread. Tom Von

Re: Why can Scene's only be constructed on the UI thread?

2014-04-26 Thread Tom Schindl
On 26.04.14 11:42, Mike Hearn wrote: I'm trying (mostly in vain) to optimise the startup time of my app. It takes about a second to build the main GUI via FXMLLoader.load() - probably because the GUI is getting a little bit complex but I think mostly because it's all running interpreted, as

Re: Why can Scene's only be constructed on the UI thread?

2014-04-26 Thread Tom Schindl
If you don't use Tooltips context menus you can construct the scenegraph in any thread. Tom Von meinem iPhone gesendet Am 26.04.2014 um 21:48 schrieb Tony Anecito adanec...@yahoo.com: Hi Tom this is also true for Swing and the EDT. I had heard years ago jre 8 was going to address this

Setup IDE for development instructions

2014-04-24 Thread Tom Schindl
Hi, I try to follow the guide at https://wiki.openjdk.java.net/display/OpenJFX/Using+an+IDE to setup my Eclipse workspace but the description how to preconfigure the JDK is a ambiguous. The ambiguous information is the cd PATH TO JFX which could me (I take my OS-X install as the reference) * cd

Re: Setup IDE for development instructions

2014-04-24 Thread Tom Schindl
needs swt-debug.jar in the library path * scenebuilder needs to reference all projects but not rt-project Tom On 24.04.14 22:29, Tom Schindl wrote: Hi, I try to follow the guide at https://wiki.openjdk.java.net/display/OpenJFX/Using+an+IDE to setup my Eclipse workspace but the description

Re: Setup IDE for development instructions

2014-04-24 Thread Tom Schindl
Hi, I once built with gradle sdk maybe that was wrong? Tom On 24.04.14 23:37, Stephen F Northover wrote: Did you build once outside the IDE? Type gradle in the rt directory. Steve On 2014-04-24 5:28 PM, Tom Schindl wrote: More stuff that does not work. If you import the projects you

Re: JavaFX 2 + with LWJGL ( OpenGL )

2014-04-06 Thread Tom Schindl
There is a talk from Felipe and Steve at J1 last year how to embed OpenGL into FX using *internal* API! Search for it on parleys - this does not help you on Win32 which uses directx instead of javafx. BTW there are people doing a JOGL pipeline

Re: JavaFX 2 + with LWJGL ( OpenGL )

2014-04-06 Thread Tom Schindl
APIs. And it doesn't matter what Windows OS you're using. I have tested this out from Windows XP all the way to Windows 7 - 32/64 Bit with no problem. Cheers Torak On Sun, Apr 6, 2014 at 11:52 AM, Tom Schindl tom.schi...@bestsolution.atwrote: There is a talk from Felipe and Steve

Re: JavaFX 2 + with LWJGL ( OpenGL )

2014-04-06 Thread Tom Schindl
, and viola.. LWJGL with JavaFX. :) LINK : https://github.com/Spasi/LWJGL-FX So just wanted to post the link here and say thanks for all of your help. :) Cheers, Torak On Sun, Apr 6, 2014 at 12:35 PM, Tom Schindl tom.schi...@bestsolution.atwrote: JavaFX does not ship OpenGL binaries

Re: Fractional Metrics

2014-04-04 Thread Tom Schindl
If you don't mind using internal APIs then: TextLayoutFactory factory = Toolkit.getToolkit().getTextLayoutFactory(); TextLayout layout = factory.createLayout(); layout.setContent(BlaBla, Font.getDefault().impl_getNativeFont()); BaseBounds b = layout.getBounds(); I find it strange the canvas

Why is com.sun.glass.ui.swt part of graphics-module

2014-04-02 Thread Tom Schindl
Hi Steve others, Why is com.sun.glass.ui.swt part of the graphics module? Should it go into the swt one? I think it should be shipped with swtfx.jar not else we get back to classloader hell because the extension classloader tries to load classes from swt which it naturally can not find. Tom

Re: *PropertyBase vs Simple*Property

2014-03-24 Thread Tom Schindl
should make this (massive) change before we lambda graphics and controls? Probably doesn't matter. We'll need a JIRA and someone assigned to it in order to track the work. Steve On 2014-03-21 12:53 PM, Tom Schindl wrote: Hi Richard, Coming back to this old thread and now that we are using

Re: *PropertyBase vs Simple*Property

2014-03-24 Thread Tom Schindl
comparison with the only difference being a Lambda versus an equivalent anonymous inner class? -- Kevin Tom Schindl wrote: Hi, I've written a small sample to see what it gets me to check: * creation overhead * memory overhead * call overhead I'm not very good at this kind of thing so

Re: *PropertyBase vs Simple*Property

2014-03-24 Thread Tom Schindl
()); } } } On 24.03.14 23:36, Tom Schindl wrote: The code I run is attached in the mail copy it to your env and run it and flip the testLambda from true to false. I might have been something dumb wrong but this is what I came up with. Tom On 24.03.14 23:31, Kevin

Re: *PropertyBase vs Simple*Property

2014-03-24 Thread Tom Schindl
Arghhh time for bed: Number is 179 vs 150 but I only ran it once so the numbers might be completely bogus! Tom On 24.03.14 23:40, Tom Schindl wrote: Ups there was an error in my test for the last Call line so the numbers there are: 38 (lambda) vs 32 (subclass) package hello; import

Re: *PropertyBase vs Simple*Property

2014-03-22 Thread Tom Schindl
Why not i expect the property to be fully initialize so this would be a breaking change in behavior. Tom Von meinem iPhone gesendet Am 22.03.2014 um 14:54 schrieb Tomas Mikula tomas.mik...@gmail.com: On Fri, Mar 21, 2014 at 8:53 PM, Tom Schindl tom.schi...@bestsolution.at wrote: Hi

Re: *PropertyBase vs Simple*Property

2014-03-22 Thread Tom Schindl
Ah i missed you passing them to the constructor. Still i don't see this as much an improvement because we still create a vast amount of anon inner classes. Tom Von meinem iPhone gesendet Am 22.03.2014 um 16:23 schrieb Tom Schindl tom.schi...@bestsolution.at: Why not i expect the property

Re: *PropertyBase vs Simple*Property

2014-03-21 Thread Tom Schindl
Hi Richard, Coming back to this old thread and now that we are using lamdas all over I guess we could take one more look into that. I've prototyped an initial version by introducing a new internal type named InvalidatedSimpleObjectProperty (not the best name ever!) - see code pasted below. And

Proposal on getting warning free (controls) packages

2014-03-20 Thread Tom Schindl
Hi, I've just started looking into getting the controls package warning free and/or suppress them in case not fixable. Most of the generic warnings I've come accross in a first pass involve StyleableProperty cast like this: ((StyleableProperty)graphicProperty()).applyStyle(origin, null); In

Re: Lambda Lambda

2014-03-20 Thread Tom Schindl
If I do that in eclipse and hover it I see it still attaches a InvalidationListener! To me it looks like the compiler does not care about what you are trying to tell him because this syntax does only have a meaning on methods who don't declare a generic type in its signature! Tom On 20.03.14

Re: Opacity in Image.getPixelReader.getColor()

2014-03-17 Thread Tom Schindl
: My understanding is alpha and opacity are same just different range. Opacity is 0.0 to 1.0 Alpha is 0 to 255 Jim or Kevin will be authority on this. Jasper On Mar 16, 2014, at 5:55 AM, Tom Schindl tom.schi...@bestsolution.at wrote: Hi, Maybe I'm completely wrong but to me it looks like

Opacity in Image.getPixelReader.getColor()

2014-03-16 Thread Tom Schindl
Hi, Maybe I'm completely wrong but to me it looks like the opacity I get from Image.getPixelReader.getColor() is wrong. If not mistaken the relation between alpha and opacity is expressed with: opacity = (255 - alpha) / 255.0 which means: opacity 0 = alpha 255 opacity 1 = alpha 0 Running the

Re: CSS Font size in points doesn't match Node.Font.Size

2014-03-05 Thread Tom Schindl
From my tests the font size generated by CSS is what one gets with the same point size and font using native apps and Qt - my complaint was the font size when using the Java API. Tom Von meinem iPhone gesendet Am 05.03.2014 um 23:03 schrieb Felipe Heidrich felipe.heidr...@oracle.com:

Re: CSS Font size in points doesn't match Node.Font.Size

2014-03-04 Thread Tom Schindl
There was a thread some time ago on this List with explainations of this behavior! Tom Von meinem iPhone gesendet Am 05.03.2014 um 01:03 schrieb Jeff Martin j...@reportmill.com: I can't quite wrap my head around why when I specify an -fx-font-size of 9pt in CSS, it turns into a 12 pt

Re: hg: openjfx/8u-dev/rt: RT-34472 Add annotation processor for @FXML annotation

2014-02-25 Thread Tom Schindl
Can you make the bug public? Tom On 25.02.14 12:48, hang...@oracle.com wrote: Changeset: 876e334f748a Author:Martin Sladecek martin.slade...@oracle.com Date: 2014-02-25 12:41 +0100 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/876e334f748a RT-34472 Add annotation

Re: -fx-background

2014-02-18 Thread Tom Schindl
Right - this would help tools as well because currently it is a bit hard to identify them - problem is that current names can not be changed. At least having a (structured) documentation above variables would certainly help! Tom On 19.02.14 01:18, Pedro Duque Vieira wrote: I found out what it

Re: [8u] API Request: RT-25613, ObservableValue should have a hasListener(listener) method

2014-01-22 Thread Tom Schindl
On 22.01.14 11:07, Martin Sladecek wrote: Hi all, I would like to start discussion about an addition to API in Observable, ObservableValue and all Observable collections. There were multiple requests for a way how to avoid duplicates in listeners lists. The way RT-25613 solves this is that it

Re: [8u] API Request: RT-25613, ObservableValue should have a hasListener(listener) method

2014-01-22 Thread Tom Schindl
[...] Actually even when you would rely on the order, in situations when you call ensureListener, you don't really know if the listener is already there. So you might really expect that listener would be added at this point as the last. It's just that will always be the outcome if the

Re: OpenGL on Windows

2014-01-14 Thread Tom Schindl
Would it be better to work on a jogl prism pipeline itself? Tom Von meinem iPhone gesendet Am 14.01.2014 um 16:15 schrieb Stephen F Northover steve.x.northo...@oracle.com: It should all just work. The first step is to go and build OpenJFX. If something doesn't work, we can help you

Re: Android Port: Next Steps

2014-01-09 Thread Tom Schindl
Have you managed to get an JavaFX running on the emulator. I've tested with one of ours and while it works great on the real device. It crashes in the emulator. V/GLASS ( 1121): JNI call notifyViewEvent to lensView 0x1d30041a W/System.err( 1121): java.lang.UnsupportedOperationException: Pixel

Re: custom FXML builders in SceneBuilder

2014-01-03 Thread Tom Schindl
IIRC we agreed while talking about the annotation replacement for builders that we'll later add a possibility to set a converter on properties through annotations - back then we only talked about constructors but this could be expanded to any property. Tom On 03.01.14 12:12, Tom Eugelink wrote:

Font.font() says it is point size but it looks like it are pixels

2013-12-23 Thread Tom Schindl
Hi, The JavaDoc of Font.font says: -8- size - The point size of the font. This can be a fractional value, but must not be negative. If the size is 0 the default size will be used. -8- I highly doubt this is correct (see attached picture from Linux where you see native, qt and

Re: JavaFX JavaDoc and IDEs

2013-12-18 Thread Tom Schindl
is the JDK JIRA for this (first introduced in 7u6...I hadn't remembered it was that early): https://bugs.openjdk.java.net/browse/JDK-7112427 And here is the JDK 8 changeset that implements it: http://hg.openjdk.java.net/jdk8/jdk8/langtools/rev/ccbe7ffdd867 -- Kevin Tom Schindl wrote

JavaFX JavaDoc and IDEs

2013-12-17 Thread Tom Schindl
Hi, I can't speak for Netbeans and IntelliJ but now that JavaFX ships the source with the JDK and Eclipse recgonizes this there's a small problem with the way JavaFX is using JavaDoc. Take for example Window#onCloseRequest /** * Called when there is an external request to close this

Re: Reloading stylesheets

2013-12-10 Thread Tom Schindl
That doesn't work in 2.x because the CSS is cached on a scene base! A trick that could work is to load the CSS with an URL like this like: my.css?timestamp=123456789 but I have not tried that and don't know if this would work. Tom On 10.12.13 13:41, Scott Palmer wrote: Have you tried simply

Re: Reloading stylesheets

2013-12-10 Thread Tom Schindl
mode only) but I don't have time to do this now. Previously you said that reloading is not needed on FX8... does this work out of the box then? Werner On 10.12.2013 14:10, Tom Schindl wrote: My code does: // Force CSS-Reloading if( isJavaFX2() ) { ReflectiveInvoke.onStyleManagerClass

Re: 8 review request: RT-34389: [doc] cssref.html copyright is incorrect

2013-12-07 Thread Tom Schindl
Hi Kevin, I checked the file at http://cr.openjdk.java.net/~kcr/RT-34389/javafx-samples-8.0.0-ea/src/Ensemble8/cssref/cssref.html and this is what I would expect to get! Tom On 07.12.13 18:41, Kevin Rushforth wrote: David, Please review the following:

Re: Scene Builder is now open source!

2013-12-03 Thread Tom Schindl
Amazing News! Von meinem iPhone gesendet Am 03.12.2013 um 16:04 schrieb Simon Vienot simon.vie...@oracle.com: Hello OpenJFXers ! We're very happy to announce that Scene Builder is now open source, as a part of the OpenJFX project. The whole Scene Builder functionality is available,

Compiling jfx78 backport for iOS

2013-11-19 Thread Tom Schindl
Hi, I'm failing to jfx78 backport. I'm executing the following command: gradle --debug -PCOMPILE_TARGETS=ios -PUSE_LIPO=true -PGENERATE_SYMBOLS=true -PBUILD_IOS_TOOLS=false -PIOS_VERSION=7.0 clean sdk Below is the log. I'm not sure but my guess is that the error comes from: 01:21:42.353

libjfxmedia.a libextensions_ios.a

2013-11-19 Thread Tom Schindl
Hi, In case I try to link both of them into my application. I get duplicate symbol errors: [exec] duplicate symbol _OBJC_IVAR_$_IPodAccess.query in: [exec] /Users/tomschindl/git/ece_2013/iFondApp/robovm-build/jfx78/libextensions_ios.a(iPodAccess.obj) [exec]

Re: enterNestedEventLoop as public API?

2013-11-13 Thread Tom Schindl
What bothers me with the API as it is today is that I have call enter/exit, I would find it more easy to work with an API like: ---8--- WaitCondition c = new WaitCondition(); Dialog d = new Dialog() { public void onClose() { c.release(); } } Platform.spinNestedEventLoop(c);

Re: enterNestedEventLoop as public API?

2013-11-13 Thread Tom Schindl
() { public void onClose() { Platform.exitNestedEventLoop(); } } Platform.enterNestedEventLoop(); Steve On 2013-11-13 5:28 AM, Tom Schindl wrote: What bothers me with the API as it is today is that I have call enter/exit, I would find it more easy to work with an API like

JavaFX on rPi iOS with RoboVM

2013-10-30 Thread Tom Schindl
Hi, I've been working on some samples for my presentation at EclipseCon Europe and wanted share my findings. 1. rpi (opendjk b113) - As a demo i used Gerrit Grunwalds imagerollover [1] which in principle works great but at a certain point crashes with an exception so

<    1   2   3   4   >