2
I am making a little betting software and I am completely lost in being able to allocate data dynamically in my interface so that for each entry in the database a structure with a JPanel
which will have components inside it and database data, additionally I will need to manipulate that data. I would like someone to guide me by giving a hint of what kind of structure I can use to do this. Thanks in advance.
I couldn’t get through the phone, but now I can get the image in. So I wanted to automatically generate panels in this model depending on the entries of the designated table in the bank. Thus I would be able to recover from the database data as name of the championship, name of the teams, date of departure, time of departure and betting modalities quotes. I would then like to display this data in this format or even in a more appropriate format. What I will need to do is select which match I intend to mark for bet and its quotation, so I need to take the value of the selected match quotations and then multiply by the value of the user’s bet. Tips?
I will make this edition to improve the visualization.
Obs: In the register class bet has no method, only has the same interface. I would like to recover the data from the database and display automatically in the format that is found in Jpanel. I am able to do the operations in the database, my doubt is how to display this data in an automated way on the screen.
Try to explain better, it’s very confusing what you’re trying to do.
– Renan Gomes
Thank you for answering. I edited the question and put some more information. I hope you can understand a little better now.
– Guilherme Ramalho
Do you already connect to the database? Show what you have already done without code is very difficult to help.
– Jéf Bueno
Thanks for your interest in helping, I put in a few more code details. PS: I know the code is not standardized but I just need it to work since it will be of very short term use.
– Guilherme Ramalho
@Guillermohermeramalho, try to avoid putting too many images, hard to read. Not least because these images are not necessary for the understanding of the question. Another thing, try to focus on a specific problem, put all your code in Pastebin and post the link will do nothing, no one will stop reading the entire source of your project. At first it is complicated to use the site, but do not give up. Read on here to learn how to create a Minimum, Complete and Verifiable example
– Jéf Bueno