SolveErrors
Swing / AWT / SWT

java.lang.ClassCastException: javax.swing.KeyStroke cannot be cast to java.lang.Comparable

14 views

The SWING frame work that i am using is working fine with jre1.6.When i try to run it through jre1.7 getting the below exception .

java.lang.ClassCastException: javax.swing.KeyStroke cannot be cast to java.lang.Comparable
at java.util.TreeMap.compare(Unknown Source)
at java.util.TreeMap.put(Unknown Source)
at java.util.TreeSet.add(Unknown Source)

Can any one help to reslove this ..

More Swing / AWT / SWT fixes

How to get date from JDateChooser into the textfieldDialog focus problem on java 7 and mac osxMinimize and Maximize button in JDialogtree.setSelectionPath not workingJDialog Netbeans RuntimeSave button within JFrame not working