tags:

views:

53

answers:

2

Let's say I have this:

public DefaultListModel model = new DefaultListModel();

how do i make it so I can see if it contains a certain string?

Thanks

+4  A: 

With the contains() method.

model.contains("MyString");
Colin Hebert
amazing job =D thanks.
Dan
A: 

Use contains()

Topera