Monday, December 23, 2013

"JList is a raw type" warning
































































Hello
































































I have this code
































































@Override































































public Component getListCellRendererComponent(































































JList list, Object value, int index,































































boolean isSelected, boolean cellHasFocus) {
































































super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
































































if(value != null) {































































Section section = (Section)value;































































setText(section.getId());































































}
































































return this;































































}































































and on JList I get warning "JList is a raw type" . Can anybody tell me please how to fix it?































































Thanks































































































































No comments:

Post a Comment