Re: Strange exception in ComboBox
Hello, I was able to fix the exception by moving the creation of the root Pane of the child Stage somewhere else, though I don't understand why this change make it work. I am still trying to have a simple test case which expose the problem, as soon as I am able to have it (for now my example sadly work ok), I will created a JIRA with the source code. Herve Sent from my iPhone > On 16 janv. 2014, at 21:01, Jonathan Giles wrote: > > It's very hard to say without a test application and the exception > stacktrace that you're seeing. If you could get those two things > together and file them in a bug in jira, I can take a look. > > -- Jonathan > >> On 17/01/2014 2:31 a.m., Hervé Girod wrote: >> Hello, >> >> We have a strange exception in ComboBox at least since b121. >> >> We create a child stage with one combobox, and we systematically have an >> exception when clicking on an item in the list because of a child added to a >> parent (ComboBoxListViewSkin) without removing it from the previous one >> (ComboBox). >> >> - The list is composed of basic Strings >> - I checked and the Pane creation is performed in the JavaFX Thread >> - We did not set any specific skin to the scene we use >> - When I tried to copy the piece of code to test it separately from the >> whole app, it worked >> - There is no exception in Java 7 for the same exact code >> >> Is it something that could be related to a bug in Java 8, or do you think it >> must be a bug in our code ? >> >> Herve >
Re: Strange exception in ComboBox
It's very hard to say without a test application and the exception stacktrace that you're seeing. If you could get those two things together and file them in a bug in jira, I can take a look. -- Jonathan On 17/01/2014 2:31 a.m., Hervé Girod wrote: > Hello, > > We have a strange exception in ComboBox at least since b121. > > We create a child stage with one combobox, and we systematically have an > exception when clicking on an item in the list because of a child added to a > parent (ComboBoxListViewSkin) without removing it from the previous one > (ComboBox). > > - The list is composed of basic Strings > - I checked and the Pane creation is performed in the JavaFX Thread > - We did not set any specific skin to the scene we use > - When I tried to copy the piece of code to test it separately from the whole > app, it worked > - There is no exception in Java 7 for the same exact code > > Is it something that could be related to a bug in Java 8, or do you think it > must be a bug in our code ? > > Herve
Strange exception in ComboBox
Hello, We have a strange exception in ComboBox at least since b121. We create a child stage with one combobox, and we systematically have an exception when clicking on an item in the list because of a child added to a parent (ComboBoxListViewSkin) without removing it from the previous one (ComboBox). - The list is composed of basic Strings - I checked and the Pane creation is performed in the JavaFX Thread - We did not set any specific skin to the scene we use - When I tried to copy the piece of code to test it separately from the whole app, it worked - There is no exception in Java 7 for the same exact code Is it something that could be related to a bug in Java 8, or do you think it must be a bug in our code ? Herve