How can I edit an item from a Jlist by simply adding an integer after that specific item (something like an append) ? Adding items to jlist with addbuttonlistener work fine but I don’t know how can I edit them .
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One solution is to use a
JTablewith a single column. Then you can use a CellEditor. See more aboutJTableand CellEditors on How to use Tables.