I want to create a JavaFx LineChart able to display data from entity class dynamically selected by the user through a combobox. Since the number of entity and their attributes is big and could be change, I want to create this process in a flexible way without hardcode the combobox filling and a switch case state to select the proper get method.
Any suggestions on how I can manage this two operations? I'm thinking to something like an application.properties file and the use of reflection, but I didn't find the right solution.
thanks in advance