02/02/2010, 17:03
|
| | Fecha de Ingreso: julio-2009 Ubicación: General Cabrera
Mensajes: 14
Antigüedad: 15 años, 5 meses Puntos: 0 | |
Respuesta: Checkbox en JTable Tenias razon dackiller faltaba poner que esa columna sea editable. El único problema que falta resolver es, cuando ejecuto esa GUI (ventana grafica) se ve bien como deberia quedar, pero cuando ejecuto el sistema completo, al abrir esa ventana me la muestra mal, se ve todo gris, como si un fondo gris tapara dicha ventana.
El error que me tira es el sig:
Exception occurred during event dispatching:
java.lang.ClassCastException
at javax.swing.JTable$BooleanRenderer.getTableCellRen dererComponent(JTable.java:3401)
at javax.swing.JTable.prepareRenderer(JTable.java:369 3)
at javax.swing.plaf.basic.BasicTableUI.paintCell(Basi cTableUI.java:1149)
at javax.swing.plaf.basic.BasicTableUI.paintCells(Bas icTableUI.java:1051)
at javax.swing.plaf.basic.BasicTableUI.paint(BasicTab leUI.java:974)
at javax.swing.plaf.ComponentUI.update(ComponentUI.ja va:142)
at javax.swing.JComponent.paintComponent(JComponent.j ava:541)
at javax.swing.JComponent.paint(JComponent.java:808)
at javax.swing.JComponent.paintChildren(JComponent.ja va:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JViewport.paint(JViewport.java:707)
at javax.swing.JComponent.paintChildren(JComponent.ja va:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JComponent.paintChildren(JComponent.ja va:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JComponent.paintChildren(JComponent.ja va:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JComponent.paintChildren(JComponent.ja va:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:5 52)
at javax.swing.JComponent.paintChildren(JComponent.ja va:647)
at javax.swing.JComponent.paintWithOffscreenBuffer(JC omponent.java:4778)
at javax.swing.JComponent.paintDoubleBuffered(JCompon ent.java:4724)
at javax.swing.JComponent.paint(JComponent.java:798)
at java.awt.GraphicsCallback$PaintCallback.run(Graphi csCallback.java:21)
at sun.awt.SunGraphicsCallback.runOneComponent(SunGra phicsCallback.java:60)
at sun.awt.SunGraphicsCallback.runComponents(SunGraph icsCallback.java:97)
at java.awt.Container.paint(Container.java:1309)
at sun.awt.RepaintArea.paint(RepaintArea.java:177)
at sun.awt.windows.WComponentPeer.handleEvent(WCompon entPeer.java:260)
at java.awt.Component.dispatchEventImpl(Component.jav a:3699)
at java.awt.Container.dispatchEventImpl(Container.jav a:1623)
at java.awt.Window.dispatchEventImpl(Window.java:1590 )
at java.awt.Component.dispatchEvent(Component.java:34 80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 450)
at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:140)
at java.awt.Dialog.show(Dialog.java:538)
at java.awt.Component.show(Component.java:1134)
at java.awt.Component.setVisible(Component.java:1089)
at client.listadoFaltantes.MediadorListadoFaltantes.v isualizar(MediadorListadoFaltantes.java:141)
at client.listadoFaltantes.MediadorListadoFaltantes.i nicializar(MediadorListadoFaltantes.java:52)
at client.listadoFaltantes.MediadorListadoFaltantes.< init>(MediadorListadoFaltantes.java:33)
at client.iniciarSesion.MediadorMaster.medListFaltant es(MediadorMaster.java:292)
at client.iniciarSesion.MediadorMaster.actionPerforme d(MediadorMaster.java:135)
at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:1764)
at javax.swing.AbstractButton$ForwardActionEvents.act ionPerformed(AbstractButton.java:1817)
at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:257)
at javax.swing.AbstractButton.doClick(AbstractButton. java:289)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Bas icMenuItemUI.java:1113)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputH andler.mouseReleased(BasicMenuItemUI.java:943)
at java.awt.Component.processMouseEvent(Component.jav a:5134)
at java.awt.Component.processEvent(Component.java:493 1)
at java.awt.Container.processEvent(Container.java:156 6)
at java.awt.Component.dispatchEventImpl(Component.jav a:3639)
at java.awt.Container.dispatchEventImpl(Container.jav a:1623)
at java.awt.Component.dispatchEvent(Component.java:34 80)
at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:3450)
at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:3165)
at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:3095)
at java.awt.Container.dispatchEventImpl(Container.jav a:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1590 )
at java.awt.Component.dispatchEvent(Component.java:34 80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 450)
at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:99)
A ver si alguien me puede dar una mano asi termino esto de una vez por toda.
SAludos |