In the picture above, I'll manually delete one of the values from the list by clicking the delete button, only when there are so so many values that it makes the scroller on the side, it does it not work. When there are only 5 values, it deletes fine, and updates perfectly. When there are any more then that, it deletes a value at random?
Thats the one line of code that removes it from the ArrayList (convertInt) by getting it from the selection of the JList (correctOrderText)
You can help us help you by posting your SSCCE code
Umm..if you want the JList code here it is:
I honestly don't know what else to give you
If you make an effort, we will make an effort.
You've already been given a working example (you're welcome by the way). So really its up to you to see what is different between your code and the working code.
Again, I posted all the code above that someone would need to solve the problem,
No you didn't!!!
We know nothing about the context of when/how that code is used. Many times people have problems because they define class and local variable for the same GUI component. There are so many silly mistakes that can be made that we can't see when you post random lines of code that may or may not be related to the problem.
doesn't matter now though, I solved it.
See I'm sure it was a silly problem that was easily solved when you took a closer look at the problem when we asked you to post a SSCCE.
Ben Jass wrote: Again, I posted all the code above that someone would need to solve the problem, I don't see why I would need to go much further, call me lazy, but there's not point..doesn't matter now though, I solved it. I'm not trying to be rude, and I apologize if you have taken me the wrong way.
Let's not argue here since that's obviously not achieving anything, and you certainly aren't required to create an SSCCE, and no one is able to force you to do this, but as yet, no one has posted a solution to your question in the forum (even if you have solved it yourself), and maybe this is due to our not having enough information to allow us to create a solution in a reasonable period of time to expect a volunteer to commit. Please understand that to solve complex problems, we often have to create the SSCCE ourselves, and your creating it for us makes it much easier for us to understand your problem, test it, modify it, and correct it. The bottom line as I see it is if you want a correct solution quickly, then it's undoubtedly in your best interest to create and post an SSCCE. I think I speak for all in saying that if you put in the effort to create this, we would all appreciate it, and we would likely show our appreciation in trying to help you as much as possible.
Ben Jass wrote: I understand, but it's over. No need to extend it.
The current issue is over for you as you've answered your question, and I am truly glad for you, but this issue is also one commonly encountered by others here in the forum, and so I felt my points important enough to make if only for them.
Best of luck.