1 Reply Latest reply: Oct 30, 2012 8:18 AM by 800268 RSS

    Tree in Table

    952515
      Hi. I trying do tree in table but results are hopeless ;(
      When i try do this by outline (netbeans library) I get exception:

      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
           at org.netbeans.swing.outline.DefaultOutlineCellRenderer.getExpansionHandleWidth(DefaultOutlineCellRenderer.java:166)
           at org.netbeans.swing.outline.DefaultOutlineCellRenderer$ExpansionHandleBorder.getBorderInsets(DefaultOutlineCellRenderer.java:411)
           at javax.swing.border.CompoundBorder.getBorderInsets(CompoundBorder.java:146)
           at javax.swing.border.AbstractBorder.getBorderInsets(AbstractBorder.java:74)
           at javax.swing.JComponent.setBorder(JComponent.java:1796)
           at org.netbeans.swing.outline.DefaultOutlineCellRenderer.setBorder(DefaultOutlineCellRenderer.java:129)
           at javax.swing.table.DefaultTableCellRenderer.getTableCellRendererComponent(DefaultTableCellRenderer.java:254)
           at org.netbeans.swing.outline.DefaultOutlineCellRenderer.getTableCellRendererComponent(DefaultOutlineCellRenderer.java:240)
           at org.netbeans.swing.etable.ETableColumn.estimatedWidth(ETableColumn.java:365)
           at org.netbeans.swing.etable.ETableColumn.updatePreferredWidth(ETableColumn.java:282)
           at org.netbeans.swing.etable.ETable.updatePreferredWidths(ETable.java:1769)
           at org.netbeans.swing.etable.ETable.setModel(ETable.java:868)
           at org.netbeans.swing.outline.Outline.setModel(Outline.java:634)
           at main.ExplainPlanPanel.<init>(ExplainPlanPanel.java:42)
           at main.ExecutionPanel.<init>(ExecutionPanel.java:32)
           at main.Main.<init>(Main.java:41)
           at main.Main$4.run(Main.java:419)
           at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
           at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
           at java.awt.EventQueue.access$000(EventQueue.java:101)
           at java.awt.EventQueue$3.run(EventQueue.java:666)
           at java.awt.EventQueue$3.run(EventQueue.java:664)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
           at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
           at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
           at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
           at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
           at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)