Re: Scroll Gesture in ListView

2015-10-15 Thread Werner Lehmann
Hi Johan, wouldn't it be possible to use an event filter on the listview? It would see (and consume) the event before it even gets to the listcell. Werner On 06.10.2015 10:02, Johan Vos wrote: So it seems to me we need something like "gestureTransparent", by which we can indicate a Node not

Re: Backport for [JDK-8131151] Pressing ESC in a nested alert closes self and parent alert

2015-09-28 Thread Werner Lehmann
Hi Jonathan, that's all I am asking. Thanks, Werner On 28.09.2015 01:41, Jonathan Giles wrote: I have no issue picking up this backport and attempting to get it into an 8u release. No promise though. -- Jonathan

Backport for [JDK-8131151] Pressing ESC in a nested alert closes self and parent alert

2015-09-24 Thread Werner Lehmann
Hi, since there seems to be an opportunity to have fixes backported to 8, I'd like to ask for a backport of the fix for [JDK-8131151] Pressing ESC in a nested alert closes self and parent alert https://bugs.openjdk.java.net/browse/JDK-8131151 Looks as if the fix is pretty simple. Without this

Re: Use of clipping in TabPaneSkin

2015-09-06 Thread Werner Lehmann
Hi Pedro, from my understanding there is no automatic clipping feature on control bounds. If the tabpane could not grow to accomadate its content, the content would overlap the tabpane bounds if it is bigger. You can find a similar pattern on the titledpane for example. Werner On 06.09.2015

Re: Use of clipping in TabPaneSkin

2015-09-05 Thread Werner Lehmann
Hi, On 04.09.2015 19:54, Pedro Duque Vieira wrote: What's the purpose of this? looks as if there is a clipping rectangle being updated whenever width/height of the clipped area changes? Werner

Re: JavaFx: printer dialog is shown behind main window(stage)

2015-06-15 Thread Werner Lehmann
Hi Alexander, this seems to be a known bug: https://bugs.openjdk.java.net/browse/JDK-8088395 Rgds Werner On 15.06.2015 07:54, Александр Свиридов wrote: The printer dialog appears. But! it appears behind the main window but not in front of main window! This strange behaviour happens only when d

Re: Maximum size of a canvas?

2015-05-15 Thread Werner Lehmann
Hi Jeff, interesting idea although I am not sure in which way this improves things. I am already scaling the canvas node if it is bigger than necessary (due to previous zoom, works like supersampling then) or smaller than necessary (if the maximum size is reached but I need to present the con

Re: slightly ot: java9 runtime images

2015-05-15 Thread Werner Lehmann
Hi Tom, could you do this with File.deleteOnExit? Question is, can it delete jars on its own classpath... Werner On 14.05.2015 08:22, Tom Eugelink wrote: Unfortunately you cannot have the spawned JVM cleanup after itself, otherwise I could stop the initial JVM after it spawned the other.

Maximum size of a canvas?

2015-05-13 Thread Werner Lehmann
Hi, is there a way to somewhat safely determine the maximum size of a canvas? I am using the canvas to display a report result in a custom report viewer control. The report can be zoomed in which basically means that I recreate the canvas with a bigger size (the canvas is inside a scrollpane)

Re: QML vs. FXML

2015-03-05 Thread Werner Lehmann
Like this? http://wiki.eclipse.org/Efxclipse/Tooling/FXGraph On 05.03.2015 16:23, Doug Schaefer wrote: You really want to use a domain specific language that’s easy to read and write. QML is that. I find XML tags overwhelm the rest of the text making it hard to understand what’s going on, and h

Re: focus property in composed control

2015-02-23 Thread Werner Lehmann
Hi Tom, lately I've been battling similar issues. One important thing I learned here is that if my custom control wraps a TextField in its skin I have to make sure that the custom control is not focus-traversable. It also seems difficult to have focus on the custom control in terms of Node.f

Re: Question/feedback regarding Windows Hi DPI support and how it will affect applications

2015-02-18 Thread Werner Lehmann
My usecase is not about "retina or not". It is about showing a report result in "actual size" which means I need to scale it depending on the screen DPI. Current workaround is this... -Dcom.sun.javafx.screenDPI=109 ...but I can't really advertise this to users. Werner On 18.02.2015 12:23, M

Re: Question/feedback regarding Windows Hi DPI support and how it will affect applications

2015-02-18 Thread Werner Lehmann
Hi Jim, interesting read. I guess I learned more about the topic than I can help. Also found this resource interesting: http://kynosarges.de/GuiDpiScaling.html Some thoughts. Obviously it is less desirable to require every application to do their own scaling. I can't imagine that this would

Re: Event Filtering

2015-02-09 Thread Werner Lehmann
I see. Looks as if the textfield in a combobox cannot be subclassed because of "final" restrictions. As a last resort, you could use your own textfield as a buttoncell - which would of course skip over all special handling for editable comboboxes in the skin... Werner On 09.02.2015 12:44, Sco

Re: Event Filtering

2015-02-09 Thread Werner Lehmann
Hi Scott, at least in Java 8 you can override TextInputControl#replaceText and/or TextInputControl#replaceSelection to convert lowercase into uppercase. I have used it for exactly this purpose. Werner On 07.02.2015 01:33, Scott Palmer wrote: But let's say that I want to allow the user to ty

Re: How to "apply" skin?

2015-02-09 Thread Werner Lehmann
Hi Tomas, I think the expected way of doing this is to defer the code which requires the control width until normal layout passes come across it. Or maybe not only defer that code but actually move it to layouting methods. Werner On 09.02.2015 00:51, Tomas Mikula wrote: Actually, I want ski

Re: Label prefHeight vs wrapText

2015-02-05 Thread Werner Lehmann
- even if other children of the vbox need to be shrunk. Werner On 28.05.2014 18:10, Werner Lehmann wrote: Martin, thanks for the explanation. Feels good to finally understand this ;-) And while I created a ticket as per your suggestion... [#RT-37309] VBox: vshrink layout hint similar to

Re: CSS under 1.8.0_40 not identical to 31 or older

2015-02-05 Thread Werner Lehmann
FWIW, we are also experiencing css differences between 8u25 and 8u40. In some custom controls portions appear completely unstyled on 8u40, as if the selectors would stop working. Couldn't take a closer look so far due to time constraints... Werner

Re: How to use scaleX/Y to change layout bounds?

2015-01-28 Thread Werner Lehmann
Hi Tobi, wrap the button into a group. Werner On 28.01.2015 07:51, Tobias Bley wrote: Hi, when I call button.setScaleX(.5) and button.setScaleY(.5) the button changes it’s size only visually - the layout bounds does not change… How can I change this behaviour? Best regards, Tobi

Re: Is it possible to have a SwingNode inside a JFXPanel

2015-01-28 Thread Werner Lehmann
We have had both scenarios and encountered issues in these areas: - dragdrop inside the component/node and between swing/fx - repaint issues, sometimes the jfxpanel would appear all black - resize issues, changes to the content of either swingnode or jfxpanel would not be passed to the containing

Re: TableView API, no lazy retrieval of visible cell content possible?

2015-01-28 Thread Werner Lehmann
Robert, I think Tomas is right, load your thumbnails on demand when updateItem is called for an item with missing thumbnail. You say that the cell of a visible item gets reused for another item. If that is the case I guess that the item is "moved" to another cell. Wouldn't it be possible to h

Re: Make TableView height match content

2015-01-07 Thread Werner Lehmann
Hi Dan, typically it is not a good idea to do this. TableView has a reason to manage scrolling on its own: if the tableview has 10 items you don't want to have all these nodes in the scenegraph when it is sufficent to show the visible ones. Your approach may have some value if the number

Re: switching skins at runtime

2014-12-29 Thread Werner Lehmann
That's what I meant: clear children, or undo whatever you are doing to them, in dispose(). At any rate I wouldn't know if that is correct. It is just how I assume this would work. On 29.12.2014 11:44, Tom Eugelink wrote: That works for unbinding listeners to skinnable and the reset code for st

Re: switching skins at runtime

2014-12-29 Thread Werner Lehmann
I think this is something you need to do in SkinBase.dispose. Werner On 26.12.2014 22:55, Tom Eugelink wrote: Hm, I've got it working, but I need to call a "getChildren().clear()" before I start creating nodes in a skin. If not, the control will retain the nodes an old skin has created. Also an

Re: Scrollbars on *View or better VirtualFlow based UI elements

2014-12-15 Thread Werner Lehmann
Hi Tomas, On 15.12.2014 16:10, Tomas Mikula wrote: To add an idea, semi-transparent scrollbars could be shown over the content when the mouse approaches the edge. This would avoid flickering andto save space at the same time. I realize one could not use this if the scrollbars would cover some in

Select-binding still warns about null steps

2014-12-15 Thread Werner Lehmann
Hi, it seems as if bindings created with Bindings.selectXXX still do not support null steps fully. With RT-35957 the log level of NPEs caused by null steps was reduced to FINE. Howver, in 8u25 there is a still a warning logged for a perfectly normal operation: Dez 15, 2014 12:59:44 PM com.

Re: High resolution printing

2014-12-09 Thread Werner Lehmann
Hi Kevin, yes it has, and my users can save their reports to a PDF file, open it, and print it. I just felt there should be a more direct way to print a report. Anyway, I decided to use Jasper's built-in print-exporter which works with Java 1.4 AWT printing. This means I have a working solut

High resolution printing

2014-12-09 Thread Werner Lehmann
Hi, I'd like to print a canvas node with native printer resolution. What is the best way to achieve that? I suppose I can't just set the canvas width and height to the printer page size equivalent because at 600 DPI this would mean about 5000x7000px. And as far as I know a canvas this size ca

Re: Permutation of scene graph children

2014-12-02 Thread Werner Lehmann
Hi Peter, didn't know about that one. It basically does what Tom suggested: makes a copy, sorts that one, then uses ObservableList.setAll to get one change event. So it is what I am doing already but still removes/adds children ;-) The remove/add approach also does work for now, it just coul

Re: Permutation of scene graph children

2014-12-02 Thread Werner Lehmann
Hi Anirvan, On 02.12.2014 06:33, Anirvan Sarkar wrote: java.util.List doesn't support a swap operation but there is Collections.swap(List, int, int) for that. thanks for the pointer. Added a comm

Re: Permutation of scene graph children

2014-12-02 Thread Werner Lehmann
Tom, I know about Collections.swap but it looks like a bad idea to use on scene graph children because it seems to temporarily have a duplicate element in the list and I can't have a node twice in the scene graph. The setAll approach is what I am using now but native permutation or swap suppo

Re: TreeItem enhancements

2014-12-01 Thread Werner Lehmann
Hi Jonathan, sure, I'll file that tweak. About prototyping: this is probably the only thing I can do here, prototyping. I'd rather prepare a pull request with treeitem enhancements while using them already for our product at the same time. That could be a win-win situation and I could provide

TreeItem enhancements

2014-12-01 Thread Werner Lehmann
Hi, I am currently building a visual designer for Jasper Reports (to be embedded in our product). The design model is basically a design tree, so I am extending TreeItem for its element classes, e.g. StaticText or SubReport. This has two benefits: 1. I get to show the model in a TreeView, and

Permutation of scene graph children

2014-12-01 Thread Werner Lehmann
Hi, occasionally I need to move a child in its children list and would like to avoid a remove/add operation. For example, this could be useful to change z-order in a StackPane, or change vertical order on a VBox, or when synchronizing item order in a model with corresponding node order in a s

Re: Classpath-relative URLs in CSS

2014-10-15 Thread Werner Lehmann
Here's the ticket. Tried it also on 8u25, same result. https://javafx-jira.kenai.com/browse/RT-38991 Werner On 15.10.2014 16:25, Werner Lehmann wrote: sure, I'll create a ticket. This is on 8u11.

Re: Classpath-relative URLs in CSS

2014-10-15 Thread Werner Lehmann
Hi, sure, I'll create a ticket. This is on 8u11. Please see also below. On 15.10.2014 14:36, David Grieve wrote: Two pieces of information are passed into the converter. The first is the value that was given in the style, e.g., "/mint/report_16x16.png". The second is the URL of the stylesheet a

Re: Classpath-relative URLs in CSS

2014-10-15 Thread Werner Lehmann
Hi David, classpath-relative URLs in CSS do not seem to work, unfortunately. For example, -fx-background-image: url("/mint/report_16x16.png"); has no effect. Relative addressing does work. Looks to me as if there is a bug in com.sun.javafx.css.converters.URLConverter.resolve. Basically it

Re: CSS: style leaks from unrelated stylesheet

2014-10-09 Thread Werner Lehmann
(). I believe the 8u40 branch of controlsfx has removed this work-around and is using the Region#getUserAgentStylesheet method. On 10/9/14, 8:58 AM, Werner Lehmann wrote: Turns out that the 3rd party control adds its stylesheet like this: class SomeControlSkin... static { StyleManager.getIns

Re: CSS: style leaks from unrelated stylesheet

2014-10-09 Thread Werner Lehmann
therefore seems to affect other nodes, too. Is this correct, and should the stylesheet rather be provided by overriding Control.getUserAgentStylesheet? Werner On 09.10.2014 12:00, Werner Lehmann wrote: Then a dialog stage is displayed and its scene does not use the 3rd party control. However, a

CSS: style leaks from unrelated stylesheet

2014-10-09 Thread Werner Lehmann
Hi, I have a strange effect with stylesheets. Somehow a style is applied although the defining stylesheet is not in the scene. Consider this scenario: Primary stage with a 3rd party control. The control's jar file contains a stylesheet with style .list-cell { -fx-pref-height: 24; } Then

Re: openjfx-dev Digest, Vol 34, Issue 36

2014-09-22 Thread Werner Lehmann
Hi Daniel, actually, as it turns out that code did not even compile with javac 8u11: [mint.javac] [...] error: package sun.util.logging.PlatformLogger does not exist [mint.javac] com.sun.javafx.binding.Logging.getLogger().setLevel(sun.util.logging.PlatformLogger.Level.OFF); Eclipse's JDT

Re: How to suppress platform logger output

2014-09-19 Thread Werner Lehmann
Hi Peter, this one seems to work, based on your former suggestion: com.sun.javafx.binding.Logging.getLogger().setLevel(sun.util.logging.PlatformLogger.Level.OFF); Thanks for that. Of course I am not sure if that also kills other binding-related logs I might be interested in but generally I'd p

Re: How to suppress platform logger output

2014-09-19 Thread Werner Lehmann
Hi Nicolai, On 19.09.2014 15:43, Nicolai Parlog wrote: a little off topic but it might still be relevant for you. thanks, I noticed that ticket and found Tomas' blog to be a very interesting read. However, this is for a Webstart application and we already have way too many dependencies for m

How to suppress platform logger output

2014-09-19 Thread Werner Lehmann
Hi, I'd like to use one of the Bindings.select* methods but can't really accept the tons of stderr output it generates for null steps. According to this ticket... [#RT-35957] Bindings class spits out a lot of unneeded log messages https://javafx-jira.kenai.com/browse/RT-35957 ... 8u20 resolv

Re: Close all ContextMenu with mouse button

2014-09-18 Thread Werner Lehmann
On 18.09.2014 14:38, Anthony Petrov wrote: If they don't, this is a bug in either Control, Scenegraph, or Glass. Please file a JIRA and provide a small test case that reproduces the problem. ...or a JFXPanel is involved: popups and contextmenus opened from a JFXPanel do not close when clicking

Re: Skin layoutChildren: when to get bounds of child nodes?

2014-07-31 Thread Werner Lehmann
Hi Martin, On 30.07.2014 17:39, Martin Sladecek wrote: I assume you don't change "child1" Nodes, so it should work. I may add/insert such nodes but in that case I take the easy route and simply rebuild the complete hbox. Yeah, one problem with layouts is when you want to do some layout tha

Re: Skin layoutChildren: when to get bounds of child nodes?

2014-07-30 Thread Werner Lehmann
Martin, thanks a lot for this elaborate explanation :) Here's an image of what I am talking about. http://postimg.org/image/t9a6esc71/ child1 is one of the labels in a hbox, e.g. "Query" or "Result" child2 is the blueish region. It needs to be positioned under one of those labels. I am doin

Re: Skin layoutChildren: when to get bounds of child nodes?

2014-07-30 Thread Werner Lehmann
Richard, since I need to get x and width of child1 (the one inside the hbox) I have to use boundsInParent. According to the docs layoutBounds.x/y are always zero for resizable nodes so it does not work here. As to the question whether the parent might be size 0: the HBox is indeed size 0 afte

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.

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

2014-07-24 Thread Werner Lehmann
Hi, since FX8 we have a styleable property -fx-max-width on Region. I'd like to use this to replace the FXML attribute with CSS -fx-max-width: Infinity; This is actually a notation to achieve the equivalent of this code: node.setMaxWidth(Double.MAX_VALUE); Unfortunately it does not wor

Skin layoutChildren: when to get bounds of child nodes?

2014-07-24 Thread Werner Lehmann
Hi, inside a control skin I have the following code pattern: protected void layoutChildren(...) { super.layoutChildren(...); Node child1 = ... Bounds bip = child1.getBoundsInParent(); if (!animating) { Node child2 = ... child2.setTranslateX(bip.getMinX();

Re: Mirrored observable collections

2014-07-24 Thread Werner Lehmann
Hi Mike, well seems as if you can create such a method using StringBinding with 4-5 lines of code. Personally I wished that StringConverter was a SAM interface so that I can just provide a lambda for it. In many cases - like yours - it is sufficient to implement the toString method... Werner

Re: Mirrored observable collections

2014-07-23 Thread Werner Lehmann
Hi, take a look at Bindings.format and Bindings.createStringBinding for that. I use it all the time. Werner On 23.07.2014 13:16, Mike Hearn wrote: Incidentally the lack of a uni-directional string binding utility in JavaFX is really annoying: converting a read only observable value into a st

Re: ComboBox: TestEditor to ListView binding

2014-07-07 Thread Werner Lehmann
Kirill, ControlsFX has support for this if a 3rd party lib is ok. With TextFields.createClearableTextField() you create a search field with an "eraser" icon to clear the text. And the AutoCompletionBinding applied to the textfield implements the auto complete dropdown. You only have to provid

Re: New alias for hg commit notifications?

2014-06-24 Thread Werner Lehmann
+1 I was filtering these anyway to a separate mail folder. Werner On 24.06.2014 15:34, Kevin Rushforth wrote: What do others think?

Re: ScrollPane.content moves with arrow keys

2014-06-10 Thread Werner Lehmann
It affects 8u5 as well: [#RT-37491] ScrollPane content can be moved around with arrow keys https://javafx-jira.kenai.com/browse/RT-37491 Werner On 10.06.2014 18:30, Eric Le Ponner wrote: Curious indeed :) And probably not intended you’re right. Note that Scene Builder 2.0 embeds its own jdk.

Re: New skinning in FX8 – where do the style classes go

2014-06-10 Thread Werner Lehmann
Hi Randahl, see this wiki page... https://wiki.openjdk.java.net/display/OpenJFX/UI+Controls+Architecture and below: On 10.06.2014 19:18, Randahl Fink Isaksen wrote: Object ◀︎—— SkinBase ◀︎—— MySkin ——> MySkinControl The new SkinBase is returning a modifiable version of the control's childr

ScrollPane.content moves with arrow keys

2014-06-10 Thread Werner Lehmann
Hi, we came across a curious behavior of ScrollPane in 8u5: the scrollpane content can be moved around with arrow keys if it is smaller than the viewport. This can be reproduced in SceneBuilder with simple FXML: http://javafx.com/javafx/8"; xmlns:fx="http://javafx.com/fxml/1";>

Re: Label baseline offset with a graphic

2014-06-03 Thread Werner Lehmann
Hi Martin, excellent - then I don't have to start looking for workarounds. Werner On 03.06.2014 14:25, Martin Sladecek wrote: Hi Werner, this has changed in 8u20. Seehttps://javafx-jira.kenai.com/browse/RT-36729 -Martin

Label baseline offset with a graphic

2014-06-03 Thread Werner Lehmann
Hi, I am trying to align labels on their baseline in an hbox. This is surprisingly difficult if some of the labels have a graphic (on the left). Turns out that LabeledSkinBase.computeBaselineOffset() simply uses the max of the text baseline and the height of the graphic: h = Math.max(

Re: Resizing stage creates delays in platform.runLater pool?

2014-06-02 Thread Werner Lehmann
Probably not (that code is gone so I don't know for sure). For some other (Mac-related) reason, the software pipeline was already used for our internal testing. Didn't seem to make a difference. FWIW, there was also an NPE occurring if someone was crazy enough to show that popup many times by

Re: Resizing stage creates delays in platform.runLater pool?

2014-06-02 Thread Werner Lehmann
We also experienced laggy animation with a "stage slide out/down" animation. The animation would change stage size and it appeared to have only 2 or 3 frames. Workaround was to use a different animation style: keep stage size but move it 20 px down while changing opacity from low to full, both

Re: Integrating JFX Dialog/Stage in Swing application

2014-05-31 Thread Werner Lehmann
Hi Robert, the problem with this is that the stage cannot have a swing window as its owner. If users misclick the stage will hide behind your main window. But if that is acceptable... Werner On 31.05.2014 14:27, Robert Krüger wrote: have a Swing JMenuItem trigger the showing of a JFX stage

Re: Label prefHeight vs wrapText

2014-05-28 Thread Werner Lehmann
Martin, thanks for the explanation. Feels good to finally understand this ;-) And while I created a ticket as per your suggestion... [#RT-37309] VBox: vshrink layout hint similar to vgrow ...it seems I can use this as a workaround: label1.minHeightProperty().bind(Bindings.createDoubleBi

Label prefHeight vs wrapText

2014-05-28 Thread Werner Lehmann
Hi, I am stumped. With a label and wrapText=true I am not getting wrapped text when I think I should. Consider this scene (code at bottom): VBox - Label, long text, wrapText=true - ListView, prefHeight=1000 (too big to fit) This will not wrap the label text. The VBox gives all room to the

Re: How to force pixels to hit the screen?

2014-05-21 Thread Werner Lehmann
Did you try to lower the priority of your thread(s)? Also, I the suggestion to wait a few frames, e.g. on the AnimationTimer, made a lot of sense to me. This will of course slow down total startup time but there is a better chance of having a complete splash screen. I am also wondering if ther

Re: No split-cursor inside JFXPanel

2014-03-12 Thread Werner Lehmann
Hi Anthony, I noticed the movement on the ticket ;-) Very good news, thx for looking into this! Werner On 11.03.2014 18:28, Anthony Petrov wrote: Hi Werner, I've re-targeted this bug to 8u20. -- best regards, Anthony On 3/7/2014 9:27 PM, Werner Lehmann wrote: Hi, inside a JFXPan

No split-cursor inside JFXPanel

2014-03-07 Thread Werner Lehmann
Hi, inside a JFXPanel we don't see the split-cursors (e.g. east/west). This is a known issue: [#RT-26235] SplitPane in JFXPanel: Mouse cursor not changed https://javafx-jira.kenai.com/browse/RT-26235 This affects regular splitpanes as well as custom nodes which just use those cursors. The fi

Can't gc a node removed from its scene

2014-02-26 Thread Werner Lehmann
Hi, I have removed a node from its scene. Node.scene and Node.parent both are null. However, inner classes of the Scene seem to keep a reference: Scene.ClickGenerator.pressedTargets Scene.ClickGenerator.releasedTargets Scene.MouseHandler.pdrEventTargets See http://imgur.com/L8dRQDW for a stro

Re: Reloading stylesheets

2013-12-10 Thread Werner Lehmann
Makes sense. Thanks! On 10.12.2013 17:09, David Grieve wrote: The way it works in 8.0 is that there is a cache of loaded stylesheets. [...]

Re: Reloading stylesheets

2013-12-10 Thread Werner Lehmann
Interesting. Assuming the stylesheets are still cached, how would it know when to reload and not use the cached sheet? Or has sheet processing been optimized so much that caching is not necessary anymore... On 10.12.2013 16:15, Tom Schindl wrote: No on FX8 you need to remove and readd them! So

Re: Reloading stylesheets

2013-12-10 Thread Werner Lehmann
Got it. The key was to move the stylesheets from the root node to the scene before reloading them: scene.styleSheets.clear scene.styleSheets.addAll(root.styleSheets) root.styleSheets.clear styleManager.reload(scene) The hotkey also works now: shift+ctrl+7 reloads CSS while the scene is visible

Re: Reloading stylesheets

2013-12-10 Thread Werner Lehmann
Thanks, Tom. Somehow it does not work for me. Any idea? Basically this is what I am doing: Parent root = ... root.getStyleSheets().add(...stylesheets...) Scene scene = new Scene(root) StyleManager.getInstance().reloadStylesheets(scene) Then I show the scene in a JFXPanel, change and save the st

Reloading stylesheets

2013-12-10 Thread Werner Lehmann
Hi, is there a way to reload previously loaded stylesheets (in FX2)? Currently I have to restart the application each time I am changing the css. It would be nice to just close and reopen that window instead to see the new styles. I'd like to unload css automatically when closing a window - i

Re: Look and feel mechanism?

2013-12-09 Thread Werner Lehmann
By the way, platform order of dialog buttons is implemented by the ButtonBar control in ControlsFX. It is of course Java8 only but can easily be brought back to FX2. Werner On 09.12.2013 10:45, Hendrik Ebbers wrote: Next to the skinning of controls additional features are needed. One example

Re: Focus handling on custom controls

2013-11-21 Thread Werner Lehmann
Interesting idea with those textfield insets. I have noticed that the FX2 combobox may not do this right because the cursor can be moved "behind" the combobox button. I'll give it a shot. Would still be nice to see how this would be done properly... Werner On 20.11.2013 13:57, Scott Palmer wr

Focus handling on custom controls

2013-11-20 Thread Werner Lehmann
Hi, I made a custom control and am trying to get the focus handling right. This is a textfield with some buttons on the right hand side, e.g. an ellipsis button: http://i.imgur.com/naPzK1W.png The control skin basically is an hbox with a textfield and a few stackpanes as its children. The q

H/V resize cursors in a JFXPanel

2013-11-18 Thread Werner Lehmann
Hi, still on FX2 I am plagued with a bug that prevents getting h-resize (split) cursor in a JFXPanel. This is a known and acknowledged issue, see [#RT-26235] SplitPane in JFXPanel: Mouse cursor not changed I have looked some more into this and noticed that this really seems to affect the h/v

Re: bugfix mode

2013-10-20 Thread Werner Lehmann
Hi Tom, I am also getting lots of these on 2.2.40. For example, running my otherwise unchanged backport of the ControlsFX property sheet creates those. There are some tickets filed not all of which are resolved. And of course this is resolved as in FX8+-resolved, so I don't really know what t

Re: Checkboxes in a combobox popup

2013-09-16 Thread Werner Lehmann
Jasper, a listview does not seem to use a ScrollPane. That's what its virtualization effort is about, using the VirtualFlow instead. Or do you mean I should nest the popup listview in a scrollpane? The MenuButton approach would be completely different and seems to have a few disadvantages of

Re: Checkboxes in a combobox popup

2013-09-16 Thread Werner Lehmann
- but not more? Rgds Werner On 14.09.2013 00:13, Werner Lehmann wrote: Hi, I am displaying checkboxes in the popup of a combobox via custom cell factory. Only problem is that a click on the checkbox actually hides the popup, even before that checkbox was selected. As I can see, the comb

Checkboxes in a combobox popup

2013-09-13 Thread Werner Lehmann
Hi, I am displaying checkboxes in the popup of a combobox via custom cell factory. Only problem is that a click on the checkbox actually hides the popup, even before that checkbox was selected. As I can see, the combobox skin has a MOUSE_PRESSED event filter which hides the popup. Current wo

Re: FocusModel too restricted?

2013-09-02 Thread Werner Lehmann
Jonathan, appreciate your elaborate answer. I arrived at the same conlusion, not to use the "official" FocusModel. There wasn't any hope to get changes for 2.2 anyway. It just felt as if it could have been a good match because a subset of it would fit perfectly, namely the focused item proper

FocusModel too restricted?

2013-09-01 Thread Werner Lehmann
Hi, I am trying to use FocusModel in a custom property sheet component - it is probably a good idea to reuse as much API as possible and make components work similar to each other. However, the focus model makes this more difficult than it should be: 1. Why is it index-based? With methods li

Re: Exception in one JFXPanel kills other JFXPanels, too

2013-08-13 Thread Werner Lehmann
Sure: https://javafx-jira.kenai.com/browse/RT-32304 On 13.08.2013 15:10, Artem Ananiev wrote: it looks like a bug in JFXPanel, could you file it to JIRA with a test case, please?

Re: Swing and JavaFX thread merge

2013-08-13 Thread Werner Lehmann
Artem, we already tested with 7u40 b35 - same thing: Java Web Start 10.40.2.35 Using JRE version 1.7.0_40-ea-b35 Java HotSpot(TM) 64-Bit Server VM ... runTest in AWT-EventQueue-2 jfx button click in JavaFX Application Thread invokeLater from jfx button click in AWT-EventQueue-0 jbutton click

Exception in one JFXPanel kills other JFXPanels, too

2013-08-13 Thread Werner Lehmann
Hi, I have noticed the following problem with exception handling and multiple JFXPanels (FX 2.2): 1. Two JFXPanels, J1 and J2 2. Throw NPE in layoutChildren of a control inside J1 This would print a stacktrace (see below). Then J2 is blocked: mouse clicks have no effect anymore. I think I ha

Re: Swing and JavaFX thread merge

2013-08-12 Thread Werner Lehmann
Hi, coincidentally we were experiencing the exact same problem with the combination 7u25, OSX, Webstart. Also, we arrived at pretty much the same workaround. Investigation showed that multiple Swing eventqueues were created in the above configuration. This would cause threading issues (NPE),

Re: Missed "pulse"?

2013-07-31 Thread Werner Lehmann
Easy trap with invalidation listeners. If you don't get the property value after invalidation, the property remains invalidated and subsequent changes won't trigger another invalidation. To fix this, simply get the value (for nothing), or switch to change listeners... You probably know this by

Re: Can JavaFX do CAD?

2013-07-29 Thread Werner Lehmann
Good questions. I've had experience with some of these, building a GUI designer. At this stage customers will use it to build input forms. Later it is supposed to grow into sort of a report designer. The core is a custom component containing a ScrollPane containing a content pane. And that pan

Re: Can JavaFX do CAD?

2013-07-29 Thread Werner Lehmann
Wouldn't this be covered by Shape.union? Obviously it depends on how union is implemented under the sheets, but it seems to me as if there was an opportunity to optimize it like that. Werner On 24.07.2013 21:06, Richard Bair wrote: I filed an RFE a little while ago for a "LineGroup" or someth

Re: Disabling JavaFX minimise/maximise/etc buttons

2013-07-24 Thread Werner Lehmann
I'd like this the most, assuming that a "trim button" is the same as a button on the window decoration (not familiar with the term trim button). Other than that, I'd also like the ability to minimize a modal dialog if that actually minimizes the main window... It is not common on Windows but ma

Re: Disabling JavaFX minimise/maximise/etc buttons

2013-07-23 Thread Werner Lehmann
On 23.07.2013 12:39, Artem Ananiev wrote: To me, making a window non-resizable is a good way to make the window unmaximizable. Do you see any cases, when a window should be resizable, but not maximizable? I create resizable modal dialogs on a frequent basis. To me, sizability is a convenience

Re: Thread checks in Glass

2013-07-22 Thread Werner Lehmann
Seems as if the ticket isn't public... On 22.07.2013 11:06, Petr Pchelko wrote: You can follow progress inhttps://javafx-jira.kenai.com/browse/RT-26891

Re: Validate cell, or request a cell update

2013-07-09 Thread Werner Lehmann
Ok - this means that in Cell.updateItem I would have to add a (weak?) listener to the item's state property. If the cell is reused for another item I would have to remove the old listener first. My only concern is that this will be done a lot when scrolling through the list. Thanks... If the

Validate cell, or request a cell update

2013-07-09 Thread Werner Lehmann
Hi, Jonathan's question about Cell.updateItem rang a bell. Earlier this year I used a listview with a cell factory and had to resort to a dirty trick to get individual items to update in the SG if the underlying data had changed. I am hoping for a non-dirty solution - otherwise I might create

Re: [API Review]: Add 'fxml.version' to System Properties (Was: FXML version number)

2013-07-09 Thread Werner Lehmann
Hi, I don't particularly prefer one way or another but the first thing which came to my mind is to use a processing instruction. Especially because it can be "used by tools somehow". XML itself shows this: My 2c. Werner On 09.07.2013 09:06, Milan Kubec wrote: This information can be then

Re: Stroke-border issues

2013-06-20 Thread Werner Lehmann
On 20.06.2013 19:49, Richard Bair wrote: It might only be for shapes, would have to look into the code for region to see if there is a way to manipulate the strokes, Generally we don't use strokes on regions ourselves, since they go down a slower code path than fills. True... but I need to supp

Re: Stroke-border issues

2013-06-20 Thread Werner Lehmann
Sounds interesting - but isn't this only for shapes? How would I apply this to a Region border... On 20.06.2013 19:26, Richard Bair wrote: I think what you're looking for is StrokeType:http://docs.oracle.com/javafx/2/api/javafx/scene/shape/StrokeType.html

Stroke-border issues

2013-06-20 Thread Werner Lehmann
Hi, I am experiencing some difficulties with border css. Not sure if those are bugs or "I am holding it wrong". The main problem is that I don't get a border to grow inside while keeping the bounds-in-parent unchanged. Maybe fx-border-insets is part of the solution but then I am not sure how

  1   2   >