java.lang.ClassCastException: java.lang.String cannot be cast to com.jason.test.tableheaders.MyColumnObject

Coderanch | Jason Richard | 3 years ago
  1. 0

    How to use a custom Object for a header

    Coderanch | 3 years ago | Jason Richard
    java.lang.ClassCastException: java.lang.String cannot be cast to com.jason.test.tableheaders.MyColumnObject
  2. 0

    Bug ID: JDK-6499662 "java.lang.ClassCastException: cannot be cast to java.lang.String" happens from time to time

    sun.com | 4 months ago
    java.lang.ClassCastException: cannot be cast to java.lang.String
  3. 0

    Bug ID: JDK-6499662 "java.lang.ClassCastException: cannot be cast to java.lang.String" happens from time to time

    sun.com | 4 months ago
    java.lang.ClassCastException: cannot be cast to java.lang.String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Bug ID: JDK-6499662 "java.lang.ClassCastException: cannot be cast to java.lang.String" happens from time to time

    sun.com | 4 months ago
    java.lang.ClassCastException: cannot be cast to java.lang.String
  6. 0

    rhino class aliasing

    GitHub | 3 years ago | perimosocordiae
    java.lang.ExceptionInInitializerError

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to com.jason.test.tableheaders.MyColumnObject

      at com.jason.test.tableheaders.DefaultTestCellRenderer.getTableCellRendererComponent()
    2. com.jason.test
      DefaultTestCellRenderer.getTableCellRendererComponent
      1. com.jason.test.tableheaders.DefaultTestCellRenderer.getTableCellRendererComponent(DefaultTestCellRenderer.java:27)
      1 frame
    3. Java RT
      Window.pack
      1. javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(Unknown Source)
      2. javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(Unknown Source)
      3. javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(Unknown Source)
      4. javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(Unknown Source)
      5. javax.swing.JComponent.getPreferredSize(Unknown Source)
      6. javax.swing.ViewportLayout.preferredLayoutSize(Unknown Source)
      7. java.awt.Container.preferredSize(Unknown Source)
      8. java.awt.Container.getPreferredSize(Unknown Source)
      9. javax.swing.JComponent.getPreferredSize(Unknown Source)
      10. javax.swing.ScrollPaneLayout.preferredLayoutSize(Unknown Source)
      11. java.awt.Container.preferredSize(Unknown Source)
      12. java.awt.Container.getPreferredSize(Unknown Source)
      13. javax.swing.JComponent.getPreferredSize(Unknown Source)
      14. java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
      15. java.awt.Container.preferredSize(Unknown Source)
      16. java.awt.Container.getPreferredSize(Unknown Source)
      17. javax.swing.JComponent.getPreferredSize(Unknown Source)
      18. java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
      19. java.awt.Container.preferredSize(Unknown Source)
      20. java.awt.Container.getPreferredSize(Unknown Source)
      21. javax.swing.JComponent.getPreferredSize(Unknown Source)
      22. javax.swing.JRootPane$RootLayout.preferredLayoutSize(Unknown Source)
      23. java.awt.Container.preferredSize(Unknown Source)
      24. java.awt.Container.getPreferredSize(Unknown Source)
      25. javax.swing.JComponent.getPreferredSize(Unknown Source)
      26. java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
      27. java.awt.Container.preferredSize(Unknown Source)
      28. java.awt.Container.getPreferredSize(Unknown Source)
      29. java.awt.Window.pack(Unknown Source)
      29 frames
    4. com.jason.test
      HeaderTester.main
      1. com.jason.test.tableheaders.HeaderTester.main(HeaderTester.java:31)
      1 frame