Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Coderanch by Jason Richard, 1 year ago
java.lang.String cannot be cast to com.jason.test.tableheaders.MyColumnObject
java.lang.ClassCastException: java.lang.String cannot be cast to com.jason.test.tableheaders.MyColumnObject at com.jason.test.tableheaders.DefaultTestCellRenderer.getTableCellRendererComponent(DefaultTestCellRenderer.java:27) at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(Unknown Source) at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(Unknown Source) at javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(Unknown Source) at javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at javax.swing.ViewportLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at javax.swing.ScrollPaneLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at java.awt.BorderLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at java.awt.BorderLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at javax.swing.JRootPane$RootLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at java.awt.BorderLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at java.awt.Window.pack(Unknown Source) at com.jason.test.tableheaders.HeaderTester.main(HeaderTester.java:31)