3 Replies Latest reply: Dec 6, 2006 10:27 AM by DrClap RSS


      Any ideas as to why a Component[] containing only JTextComponents can't be cast as a JTextComponent[]? I get a ClassCastException at runtime. I've checked the array before casting, and it really contains just JTextFields, JFormattedTextFields, and JPasswordFields. If the problem isn't something immediately apparrent that I just overlooked I'll provide more details later.