Results 1 to 2 of 2
  1. #1
    nat
    nat is offline Member
    Join Date
    Dec 2013
    Posts
    56
    Rep Power
    0

    Default "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

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,816
    Rep Power
    25

    Default Re: "JList is a raw type" warning

    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Replies: 0
    Last Post: 12-07-2012, 09:29 AM
  2. Replies: 3
    Last Post: 10-30-2012, 04:06 PM
  3. Replies: 3
    Last Post: 08-11-2012, 02:58 AM
  4. Replies: 0
    Last Post: 07-28-2009, 07:45 PM
  5. Replies: 1
    Last Post: 10-20-2008, 08:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •