Hello,
I have a problem in my code. When I use Java 1.3 my code works fine.
But when I use Java 1.4.1, I get an "Array Index Out of Range" Error
on my cardLayout.show line.
Can anybody explain what is going on ? Did I miss something between
Java 1.3 and 1.4 ?
Here is an snip of my code.
private final CardLayout cardLayout = new CardLayout();
private final JPanel cardPanel = new JPanel(cardLayout);
.
.
.
if (ev.getActionCommand().equals(CARD_CHANGE_COMMAND)) {
String name = (String)cbCards.getSelectedItem();
cardLayout.show(cardPanel, name);
}
Thanks for any help.
Matthew
Andrew Thompson - 31 Aug 2004 06:24 GMT
> I have a problem in my code. ..
What code? Give us a small example
<http://www.physci.org/codes/sscce.jsp>
[ Many things are possible, but it is most
likely a bug in your code was hidden by 1.3
and revelaed by 1.4
Thread safety perhaps? ]

Signature
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology