Warning: [rawtypes] found raw type: DefaultListModel?

Since Java 7 DefaultListModel is a generic type, like List Set etc. It expects a type : DefaultListModel.

Since Java 7, DefaultListModel is a generic type, like List, Set, etc. It expects a type : DefaultListModel instead of the raw DefaultListModel. This allows to work in a more type-safe way, because you won't be able to insert a String into a list model which is supposed to contain Integer instances. And you won't have to cast to Integer when getting an element from the model.

The same is true for JList which is also now a JList of Strings or a JList of Integers, instead of being a raw JList. Read the tutorial about generics, and have a look at the javadoc of DefaultListModel.

Thank you so much for the accurate and spot on answer! I was referencing from the old api documentation and didn't know the one you pointed me into ever existed! You saved my day!

– Sam Oct 19 at 15:02 Since I contributed that patch to OpenJDK I blogged about it here: puces-blog.blogspot. Com/2009/11/… – Puce Oct 19 at 15:38 @Puce thanks so much :-) – mKorbel Oct 19 at 16:17.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions