Skip to content
Advertisement

Automatically filter JTable once QR is scanned

I am trying to make an attendance system with QR generator and scanner using zxing. QR part is working fine but I have one problem right now. When the QR code get scanned, I want it to automatically filter the table/database with the same serial number through textfield (I am using setText to pass the text on QR to textfield.

Code for Filter:

JavaScript

So far, I have this code on a key released event. I also tried adding it to other event listener but it doesn’t work like I want it to be.

Advertisement

Answer

Netbeans 8.2 (IDE I am currently using) does not have any event for document listener so adding it on code customizer helps.

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement