I am dynamically adding items to a JList (using setListData) but only want 5 to show at a time. I have tried using setVisibleRowCount(5) but it doesn't work. I even tried some Sys outs to see if the method worked and sure enough it tells me that the visible row count is 5 but I still have a JList that is more that 5?!?
Code can be made available on request.
Code can be made available on request.