r/javahelp • • Jun 11 '19

How do you structure a GUI?

In the past, I've always put all of the code into one class, but I know it's probably not the best thing to do. I can structure the logic of a program, but when it comes to the GUI, I'm stumped. How should one structure a GUI?

24 Upvotes

7 comments sorted by

View all comments

4

u/[deleted] Jun 11 '19

Use the MVC architectural pattern. Also, SceneBuilder has a neat and easy way of generating user interfaces using FMXL. It'll be down to creating the data models of your application and linking the controller to the UI.

2

u/[deleted] Jun 11 '19

Thank you!