B4J Question Adding Tabs via Scene Builder

Discussion in 'B4J Questions' started by melliott, Mar 24, 2015.

Similar threads

B4J Tutorial Working with JavaFX Scene Builder
B4J Tutorial Charts Framework
B4J Tutorial TabPane Example
B4J Tutorial Pagination Container
B4J Tutorial Accordion container
  1. melliott

    melliott Member Licensed User

    Hello,

    I am using B4J. For a TabPane in Scene Builder where is the property to set the number of tabs?

    It defaults to 2 (two) tabs. I'd like to add more without using code in this instance.


    Thanks,

    Michael
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. rwblinn

    rwblinn Well-Known Member Licensed User

    To add Tabs without programming using the JavaFX Scene Builder:
    After the TabPane has been added, select a Tab in the Hierachy, then right mouseclick, select duplicate from the popupmenu. A new Tab is added.

    Alternatively, open the layout fxml file (from the files folder) in a texteditor, copy & paste a tab section, like <Tab text="Tab 1"> ... </Tab> and make further changes required.
     
  4. melliott

    melliott Member Licensed User

    Perfect thanks Erel and Rob!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice