java.lang.ClassCastException: javax.swing.tree.DefaultMutableTreeNode cannot be cast to org.netbeans.swing.dirchooser.DirectoryNode

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 netbeans.org by Unknown author, 1 year ago
javax.swing.tree.DefaultMutableTreeNode cannot be cast to org.netbeans.swing.dirchooser.DirectoryNode
java.lang.ClassCastException: javax.swing.tree.DefaultMutableTreeNode cannot be cast to org.netbeans.swing.dirchooser.DirectoryNode
at org.netbeans.swing.dirchooser.DirectoryChooserUI$NewDirectoryAction.actionPerformed(DirectoryChooserUI.java:2364)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.