B4J Tutorial Internal Visual Designer

Discussion in 'B4J Tutorials' started by Erel, Jul 28, 2015.

  1. Erel

    Erel Administrator Staff Member Licensed User

    Starting from B4J v3.50 the IDE includes a visual designer similar to B4A and B4i designer.
    The output of the designer is a bjl file. This file can be loaded to other panes or containers with:
    When the layout parent is resized the layout file will be resized as well based on the layout anchors and designer script.
    This happens before the Pane_Resize event is executed.

    Note that the anchors feature works with all panes, not just AnchorPane.
    It is highly recommended to use anchors. They are simple and powerful.

    Menus and context menus are defined in JSON format. See this tutorial for more information: http://www.b4x.com/android/forum/threads/designer-menu-items.56602/

    It is not possible to convert a FXML layout (scene builder layout) to bjl layout. However you can combine both layouts. For example you can load a bjl layout to a pane previously added by loading a FXML layout.

    Thread with several useful questions and answers: http://www.b4x.com/android/forum/threads/b4j-3-50-visual-designer-questions.56571/
    ellpopeb4a likes this.
  2. jinyistudio

    jinyistudio Active Member Licensed User

    Hi Erel

    What's different Internal desinger And Sence builder ? What time could i use internal designer ? What time i must use scence builder ?
  3. ShaneG30

    ShaneG30 Well-Known Member Licensed User

    Both are separate. They don't rely on each other.

    The Internal Designer is like the designers in B4A/B4i
    The Scene Builder is a GUI creation tool created by Oracle. (Now maintained by Gluon.)
    Mark Turney and jinyistudio like this.
  4. B4JExplorer

    B4JExplorer Active Member Licensed User

    I see the bjl is in a binary format.

    Will the fxml format continue to be supported, in subsequent B4J releases?
  5. Erel

    Erel Administrator Staff Member Licensed User

    Scene Builder is still supported. Though new views and features are only added to the internal designer.

    Note that you can combine layouts from both types in the same app.
    B4JExplorer and DonManfred like this.
  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