Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to design the GUI in javafx 2.0?

Tags:

fxml

javafx-2

In javafx 2.0 it is possible to create the layout by using FXML approach or by using normal java code. What is the best way with respect to a well designed set of UIs. In my application there is about 100 sub UIs.

Thanks

like image 530
Sachin Perera Avatar asked Feb 02 '23 10:02

Sachin Perera


2 Answers

FXML looks more logical for that purpose. By using FXML

  • you split business logic from view
  • you get option to edit design without recompiling project.
  • you get design as structured xml tree which is much easier to edit comparing to potentially randomly ordered java code
  • with SceneBuider tool you get an option to use visual editor for your fxml files
like image 151
Sergey Grinev Avatar answered Feb 15 '23 11:02

Sergey Grinev


Get JavaFX Scenebuilder here.

like image 32
Glstunna Avatar answered Feb 15 '23 11:02

Glstunna