Basically I am designing a program for a restaurant (without stock), it is to render the programming subject. I request help :(
I have an Input class, another Plato class, and another Mesa class.
Objects of type Inputs are instantiated with their code and description. Plato class objects also have code and description, but they are also composed of an ArrayList. The Mesa class objects have their identifier number, and are composed of Plato collections. All my ArrayList (Inputs and Dishes) are stored in a separate class, called Rest (to prevent them from being lost).
But the Plato class has its own Input-type ArrayList, since each Plato instance can contain 1, or several objects of type .-
What is not coming out is to send through the graphical interface to the ArrayList to put inside the Plato class.
That is to say ... I managed to upload the list of supplies that I register in a ComboBox. What you would need is an option to choose several Inputs, and add them to the ArrayList of the Plato class. To then send that object of type Plate to its corresponding ArrayList, with the ArrayList that corresponds to it.
I explain?
That is, it would have an ArrayList that would contain Plato objects and each Plato has ArrayList objects.
I hope you understand ... Anything I edit or put the code.