Error al insertar en un container
Tengo una aplicación en java que conecta con el MySQL para obtener registros de las tablas. Estos registros los voy almacenando en un "container" para mostrarlos por pantalla pero cuando llego a insertar 990 registros, el programa casca, si utilizo menos registros no da ningún problema. Los errores son los siguientes:
java.lang.NullPointerException: disposed component
at sun.awt.windows.Win32SurfaceData.initOps(Native Method)
at sun.awt.windows.Win32SurfaceData.<init>(Win32SurfaceData.java:450)
at sun.awt.windows.Win32SurfaceData.createData(Win32SurfaceData.java:326)
at sun.awt.windows.WComponentPeer.<init>(WComponentPeer.java:510)
at sun.awt.windows.WCanvasPeer.<init>(WCanvasPeer.java:29)
at sun.awt.windows.WPanelPeer.<init>(WPanelPeer.java:53)
at sun.awt.windows.WToolkit.createPanel(WToolkit.java:365)
at java.awt.Panel.addNotify(Panel.java:70)
at java.awt.Container.addImpl(Container.java:658)
at java.awt.Container.add(Container.java:307)
at Lista.addFila(Lista.java:146)
at ResultadosPrincipal.llenarLista(ResultadosPrincipal.java:565)
at ResultadosPrincipal.<init>(ResultadosPrincipal.java:166)
at PanelConsultaCoste.actionPerformed(PanelConsultaCoste.java:699)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
java.lang.NullPointerException: disposed component
at sun.awt.windows.Win32SurfaceData.initOps(Native Method)
at sun.awt.windows.Win32SurfaceData.<init>(Win32SurfaceData.java:450)
at sun.awt.windows.Win32SurfaceData.createData(Win32SurfaceData.java:326)
at sun.awt.windows.WComponentPeer.<init>(WComponentPeer.java:510)
at sun.awt.windows.WCanvasPeer.<init>(WCanvasPeer.java:29)
at sun.awt.windows.WPanelPeer.<init>(WPanelPeer.java:53)
at sun.awt.windows.WToolkit.createPanel(WToolkit.java:365)
at java.awt.Panel.addNotify(Panel.java:70)
at java.awt.Container.addImpl(Container.java:658)
at java.awt.Container.add(Container.java:307)
at Lista.addFila(Lista.java:146)
at ResultadosPrincipal.llenarLista(ResultadosPrincipal.java:565)
at ResultadosPrincipal.<init>(ResultadosPrincipal.java:166)
at PanelConsultaCoste.actionPerformed(PanelConsultaCoste.java:699)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)