From falcon.sheep at gmail.com Sun May 17 14:25:18 2020 From: falcon.sheep at gmail.com (Abu Abdullah) Date: Sun, 17 May 2020 18:25:18 +0400 Subject: workaround for a Regression bug Message-ID: Hi, i have submitted a bug on: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8242546 is there any workaround i can use until this bug is solved. i do not want to return back to jfx 8 any help is appreciated From fastegal at swingempire.de Sun May 17 15:35:58 2020 From: fastegal at swingempire.de (Jeanette Winzenburg) Date: Sun, 17 May 2020 17:35:58 +0200 Subject: workaround for a Regression bug In-Reply-To: References: Message-ID: <20200517173558.Horde.DjDK7Y2AXqevPxT8z6E-Nw8@webmail.df.eu> this looks like deja vue - didn't you ask about that a while ago? Anyway, it's a useage error: in a listener, you can't assume anything about the state of a property that's not the notifying one (except if they are specified as being either completely orthogonal or explicitely guarantee to support cross-access) Change your code to cope with that fact. -- Jeanette Zitat von Abu Abdullah : > Hi, > > i have submitted a bug on: > https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8242546 > > is there any workaround i can use until this bug is solved. i do not > want to return back to jfx 8 > > any help is appreciated From paul at bigtheta.co.uk Mon May 18 08:39:04 2020 From: paul at bigtheta.co.uk (Paul Johnson) Date: Mon, 18 May 2020 09:39:04 +0100 Subject: Question on scene.setRoot vs stage.setScene Message-ID: <105654ac-1d0d-5bf3-f9a5-db9d04b9fbb1@bigtheta.co.uk> I'm currently evaluating JavaFX for a project and I'm pretty confused by recommendations on stack-overflow and also by the JavaFX archetype on Maven which seem to suggest that when altering content on a stage one should switch out the scene graphs root node instead of replacing the the current scene, I have yet to find an explanation as to why that should be the case. Does this not mean that the theatre metaphor is fundamentally broken? This theatre has a primary stage, the show has only one scene to act out on the primary stage but the props and actors of the scene are changed so radically that it appears to the audience that there are multiple scenes taking place. I have noticed that calling stage.setScene appears to resize the stage which also seems to break the metaphor, presumably those dressing the stage / acting should adapt the setup to the stage rather than resizing the stage to accommodate the scene. Kind regards Paul From nlisker at gmail.com Mon May 18 21:51:59 2020 From: nlisker at gmail.com (Nir Lisker) Date: Tue, 19 May 2020 00:51:59 +0300 Subject: Question on scene.setRoot vs stage.setScene In-Reply-To: <105654ac-1d0d-5bf3-f9a5-db9d04b9fbb1@bigtheta.co.uk> References: <105654ac-1d0d-5bf3-f9a5-db9d04b9fbb1@bigtheta.co.uk> Message-ID: Hi Paul, Metaphors aside, I would say it depends on the use case. If you are making a change only on the scene graph, then there is no need to change the scene. A scene has many properties of its own that control its behavior and visuals. You can create a scene with a depth buffer, for example, and if you want to use a scene without a depth buffer then you would need to swap the scene itself. As a rule of thumb, try to change the minimum that you can. If you want to change the text of a button, would you just change the text or create a new button with a different text? I have noticed that calling stage.setScene appears to resize the stage This is stated in the docs of Stage#sceneProperty: "If the width or height of this Window have never been set by the application, setting the scene will cause this Window to take its width or height from that scene.", so it shouldn't be surprising. - Nir On Mon, May 18, 2020 at 11:40 AM Paul Johnson wrote: > I'm currently evaluating JavaFX for a project and I'm pretty confused by > recommendations on stack-overflow and also by the JavaFX archetype on > Maven which seem to suggest that when altering content on a stage one > should switch out the scene graphs root node instead of replacing the > the current scene, I have yet to find an explanation as to why that > should be the case. > > Does this not mean that the theatre metaphor is fundamentally broken? > > This theatre has a primary stage, the show has only one scene to act out > on the primary stage but the props and actors of the scene are changed > so radically that it appears to the audience that there are multiple > scenes taking place. > > I have noticed that calling stage.setScene appears to resize the stage > which also seems to break the metaphor, presumably those dressing the > stage / acting should adapt the setup to the stage rather than resizing > the stage to accommodate the scene. > > Kind regards > > > Paul > > From benjamin.rosman at nordforce.se Fri May 29 11:09:46 2020 From: benjamin.rosman at nordforce.se (Benjamin Rosman) Date: Fri, 29 May 2020 13:09:46 +0200 Subject: Gesture support for glass Message-ID: Hi I am working with an advanced GUI which I need to run on Linux x86_64. I need multi-touch, not just mouse events. As far as I understand multi-touch and gesture support is not implemented in the glass backend. Two questions: * Are there any plans to implement this in the near future? * Any hints on workarounds? /Benji