Search code examples
javauser-interfacerulesbuilding

Rules for building Graphical User Interface


I like the back-end programming in service and database layers. Mainly because I was never able to figure out how to build decent user interface. I'm talking about GWT and Swing.

Is there something like a site with examples and good rules to follow on how to build nice intuitive UI?

The biggest pain for me is selecting the layout strategy so if you could address mainly that, it would be really helpful.


Solution

  • If there's no UI/usability expert in the team then try to achieve the bare minimum - having the user interface behaving as expected without bugs. There are few approaches and my favorite is using the Presentation Model introduced by Martin Fowler.

    Keep all the state of the UI in a POJO. This decoupling will enable you to have the UI logic testable without need of displaying the UI itself.

    You are going to be criticized for the look and feel of the UI but the functions are going to be executed extremely well.