To avoid the warning, scrollingList must be:

JList<Object> scrollingList = new JList<Object>();


Speaking in general, it's not very good that the "value" is a JLabel. It should be a simple...