#JavaFX Model, Controller design related question

1 messages · Page 1 of 1 (latest)

ionic mauveBOT
#

<@&987246841693360200> please have a look, thanks.

ionic mauveBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

pastel canyon
#

(I'm unsure whether the "architecture" tag was the correct one, excuse me if it wasnt!)

#

To make a further example of what I'm asking...
Let's assume I need to check whether one button is empty, and if it is, I should fill it with something.
Should I do both the check and the fill inside the Controller class?
or is it acceptable to check if one button is empty inside the Model class?

rose hedge
#

However, to handle the logic, the array of button is also needed.

#

Can you explain this further? Also, could you give us more context to what your application is trying to do, maybe post some code?

pastel canyon