Javier Coronel wrote:sorry for bothering you again. I am making a simple program in which you create " Associates " for a club and add them to a list of "Associates". Then you display them in a list and below have two buttons that gives you the option to edit and delete them. I want to know what are the stepes to follow when one of them is selected and clicked in the ""edit " button. How can I modifiy only that "Associates" in the arraylist?
Andrea, andbin.dev — SCJP 5 (91%) – SCWCD 5 (94%)
java.util.function Interfaces Cheat Sheet — Java Versions Cheat Sheet
Andrea Binello wrote:
Javier Coronel wrote:sorry for bothering you again. I am making a simple program in which you create " Associates " for a club and add them to a list of "Associates". Then you display them in a list and below have two buttons that gives you the option to edit and delete them. I want to know what are the stepes to follow when one of them is selected and clicked in the ""edit " button. How can I modifiy only that "Associates" in the arraylist?
Firstly you should tell us what does "edit" mean to you. I suppose: open some sort of dialog where the user can view/change some informations, you should clarify. And you should also clarify which type of user interface you are developing: is it a Swing application? Is it a web application? If Swing, are you using JList? Or JTable for your associates?
Campbell Ritchie wrote:Android counts as Java, so that question is in place.
Please explain exactly what you want to do. Do you wish to alter the details of one of the associates? Do you want to remove associates altogether? ListView appears to be for displaying a List. What is the model behind your List? Is it an array list, or the list GUI component? If it is a GUI list, what is its model (again)? This Java Tutorials section might help you.
Javier Coronel wrote:I upload the code so you can see:
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
I am afraid I shall go farther than Winston and say that the code does not help. Please write down very simply what you intend to do, not how you are trying to do it. Write so simply that the difference between English and Spanish doesn't matter.Javier Coronel wrote: . . . I upload the code so you can see: . . .
Campbell Ritchie wrote:
I am afraid I shall go farther than Winston and say that the code does not help. Please write down very simply what you intend to do, not how you are trying to do it. Write so simply that the difference between English and Spanish doesn't matter.Javier Coronel wrote: . . . I upload the code so you can see: . . .
Consider Paul's rocket mass heater. |