swing - The TableFilterDemo.java is not working -
i learning how add together filter jtable, found tutorials in sun website
http://docs.oracle.com/javase/tutorial/uiswing/examples/components/tablefilterdemoproject/src/components/tablefilterdemo.java
i copied code netbeans, code complied , run successfully, when come in "jane" in filtertext table info disappears instead of showing row.
looking help give thanks you.
it's case sensitive. type "jane"
good luck
update
if want create case insensitive (?i) works fine before regex alter line
rf = rowfilter.regexfilter(filtertext.gettext(), 0);
like this.
rf = rowfilter.regexfilter("(?i)"+ filtertext.gettext(), 0);
good luck!
java swing jtable
No comments:
Post a Comment