I'm making a small betting software and I'm completely lost in being able to allocate data dynamically on my interface so that for every entry in the database a structure with a JPanel
is displayed that will have components inside it and data from the bank, I will additionally need to manipulate this data. I would like someone to guide me by giving a hint as to what kind of framework I can use to do this. Thanks in advance.
Thecellphonedidnotwork,butnowIcaninserttheimage.SoIwantedpanelstobeautomaticallygeneratedinthistemplatedependingontheentriesinthedesignatedtableinthedatabase.InthiswayIwouldbeabletoretrievefromthedatabasedatasuchasthenameoftheleague,thenamesoftheteams,thedateofthematch,thetimeofthematchandtheoddsofbettingmodalities.Iwouldthenliketodisplaythisdatainthisformatoreveninamoreappropriateformat.WhatIwillneedtodoisselectwhichmatchIwanttoscoreandyourodds,soIneedtopickuptheoddsoftheselectedmatchandthenmultiplyitbythevalueofthebet.Tips?
I'lldothiseditiontoimprovethevisualization.
Note: In the class register bet has no method, only has the same interface. I would like to retrieve the data from the database and display it automatically in the format that is in JPanel. I'm actually getting the operations in the database, my question is how to display this data in an automated way on the screen.