JList是原始类型。应该参数化对泛型类型JList的引用 [英] JList is a raw type. References to generic type JList should be parameterized

查看:464
本文介绍了JList是原始类型。应该参数化对泛型类型JList的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好:



我在代码上收到警告,但不确定这意味着什么。我在这里得到它:



Hello:

I am getting that warning on my code and not really sure what it means. I am getting it here:

JList list;
DefaultListModel listModel;
ListSelectionModel listSelectionModel;







帮助!!!




Help!!!

推荐答案

它很简单,只需查看文档。 [ ^ ]



简单的谷歌搜索就可以为你清除这一点。
Its pretty easy, just look at the documentation.[^]

Simple Google search would have cleared this up for you.


这篇关于JList是原始类型。应该参数化对泛型类型JList的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆