samedi 29 mai 2021

trying to figure out how to populate a list with random info when a button is clicked

ok i am working on creating a program that will allow me to click a button and display the information in the same window/stage?/scene? but in a listview area. i am building an application for generating random loot from a list, (pref one not written into the main code area) and then display that loot in a listview area in the same window. i understand the logic of the code i see inside the IDE im using (intellij, building the GUI with Scene Builder). but my problem (problems really as there seem to be many) is that i cant figure out either where to find the code snippets needed or the tutorials needed to explain to me what code is needed to tie the button click into looking at the loot list and then randomly pick a given amount of items to display and then display it in the listview area.... i have been trying to find a tutorial or snippets of code for a few days now and none of the main java coding tutorial site, video or text, have the info im looking for... those sites only give the system.out print example to have the app print to the console and i dont need that. i can provide a link to the github where this is currently residing in its current format if need... any help anyone can provide me would be greatly appreciated... if this seems a little random i apologize but its the best way i can think of to describe what im trying to do. thank you and may Nyx bless you




Aucun commentaire:

Enregistrer un commentaire