JFX TabPane bug?

Discussion in 'Java' started by Michael Jung, Jun 14, 2014.

  1. Michael Jung

    Michael Jung Guest

    Before going through all the hassle with registering in JFX/Jira to
    report this, I'd like to ask for your opinion. I am using JFX8 and have
    a construct as follows:

    VBox(instance vbox)->TabPane->Tab->TextField(fx:id="bla").

    when I do a vbox.lookup("#bla"), I get null. When cascading this
    differently - not through a TabPane -, the lookup succeeds. While
    playing around, and reading the documentation carefully, I presume this
    is due to the fact that "TabPane->Tab->" does not go through the
    children list, thereby interrupting the tree search. From a consistency
    point (documentation vs reality) this is probably correct, but it can
    hardly be intended. This way, large parts of widget trees become
    invisible for a lookup, at least as far as the usual queries go.

    Sorry for not providing an SSCCE, I believe it to be easy to create, but
    the JFX boiler plate code isn't all that interesting.

    Any comments?

    Michael
     
    Michael Jung, Jun 14, 2014
    #1
    1. Advertisements

  2. The idea of the SSCCE is it to make it easier for others to increase the
    likelihood that you get help. Plus, we cannot know what you consider
    "boiler plate" so anything we might come up with ourselves might be
    different than what you have.

    http://www.sscce.org/#bother

    Cheers

    robert
     
    Robert Klemme, Jun 14, 2014
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.