Hi,
I need to come up with a java program (JList) to monitor products/goods for my operation.
The program should let me enter products (items) or delete them, one at a time.
Once entered, a product (item) should be highlighted or painted in “Red” or default color, indicating it needs attention.
Once I finish considering a product in the list, I would like to toggle that product (item) to change the color to normal, indicating this product does not need attention.
During operation, should the problem arise with any product(s) / item(s), I would like to toggle the product(s)/item(s) to Red again, indicating they needs my attention again.
I can add/delete item but I need help to paint/highlight the background once I select/deselect the product/item.
Right now, if I leave the previous selection for the new selection, the previous one will lose the hightlight. I need them to stay permanent no matter where I click until I re-elect it.
Thanks,