>> Well, good luck solving the problem because we can't help you:
>> a) we have no idea where you are getting the NPE
My humble apologies here are the errors:
generated due to this line:
listSelectionModel = jTable1.getSelectionModel();
>> b) the posted code isn't compileable.
... and yes it is :-)
Exception in
thread "AWT-EventQueue-0" java.lang.NullPointerException
at air.CustomerUI.<init>(CustomerUI.java:28)
at air.CustomerUI$1.run(CustomerUI.java:96)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
BUILD SUCCESSFUL (total time: 1 second)