Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8097932

Ability to generate Java code from fxml

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • tbd
    • javafx
    • None

      As Javafx UI can be built declaratively through fxml or programmatically through javafx api, it will be useful to be able to generate Java code from valid fxml in Scenebuilder to allow more flexibility and control, or prefer mode of building application. To my knowledge, this workflow of generating underlying code from xml-based UI design has not been done before. However this hybrid approach is very useful as it combines the best of both world approach of using fxml and code where it seems fit. For dynamic behaviour, developer may want use scene builder to build UI visually or using fxml and experiment until then, he can generate the java code and integrate into his app code for more control (etc lazy instantiation of UI elements). That say, the ability to generate Java code from fxml made sense and feasible but not Java code to fxml.


      In addition, hopefully, there is also "design switch mode" where user can toggle between visual UI design and Fxml where user can edit the fxml and tab to Design tab to show the change.








            slions Sandra Lions-piron
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: