Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

ClassCastException

Help
truthknown
2005-04-20
2013-04-16
  • truthknown
    truthknown
    2005-04-20

    Hi I am getting this exception when trying to use either the Office XP or Office 2003 look and feels...

    java.lang.ClassCastException

        at org.fife.plaf.OfficeXP.OfficeXPComboBoxUI$ComboBorder.paintBorder(Unknown Source)

        at javax.swing.JComponent.paintBorder(JComponent.java:707)

    Any reason I would be getting this exception. It is preventing my screens from loading up. The only way I was able to get around this was by adding this line after i set the look and feel - UIManager.getDefaults().remove("ComboBox.border"); but this leaves the combo boxes drawn incomplete and looks disgusting.

    Thanks,
    Chris

     
    • Robert Futrell
      Robert Futrell
      2005-04-21

      On further investigation, this appears to be due to a custom JComboBox that doesn't behave well with the Office Look and Feels for some reason.  I'll look into whether the changed properties of the combo should be taken into account by the Looks, so that it is rendered better.