> I am getting a syntax error in my Java code that I cannot understand and
> hope you can help me. It's with Java 6.0 and TableRowSorter. The line of
[quoted text clipped - 19 lines]
>
> Wes
Show us what tableModel looks like ;)
"Wes Harrison" wrote...
> I am getting a syntax error in my Java code that I cannot
> understand and hope you can help me.
It's not a syntax error, not even an error. It's a compiler warning.
Read the lines again, and you'll see that it's a warning that something's
"unchecked".
warning: [unchecked]
> What do they mean exactly and how do I fix the problem?
It means that you can get your application more typesafe by using generics,
i.e. to provide in the source code what type of TableModel your
TableRowSorter is supposed to handle.
When using that option, it means that it will do further checks in the
compilation that you won't use any other TableModel than your specific
implementation of it.
You don't *have* to do anything, as it's not a "problem". If it compiled
with only those warnings, the compilation still got through.
/// Bjorn A