|
|
Error Using cardLayout.show with Java 1.4
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
|
|
0
|
|
|
|
Reply
|
mpinhorn
|
8/30/2004 6:22:34 PM |
|
On 30 Aug 2004 11:22:34 -0700, mpinhorn wrote:
> 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? ]
--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
|
|
0
|
|
|
|
Reply
|
Andrew
|
8/31/2004 5:24:33 AM
|
|
|
1 Replies
190 Views
(page loaded in 0.047 seconds)
Similiar Articles: About sgpanel - comp.soft-sys.sasError Using cardLayout.show with Java 1.4 - comp.lang.java.gui ... About sgpanel - comp.soft-sys.sas However, I did have some problems with the code which you show above ... mcc -W 'java: .. problem - comp.soft-sys.matlabError Using cardLayout.show with Java 1.4 - comp.lang.java.gui ... Hello, I have a problem in my code. When I use Java 1.3 my code works fine. ... mcc -W 'java: .. problem ... [Eclipse] How to fix indentations. - comp.lang.java.help ...Error Using cardLayout.show with Java 1.4 - comp.lang.java.gui ... emacs error: max-specpdl-size - comp.unix.solaris [Eclipse] How to fix indentations. - comp.lang.java ... emacs error: max-specpdl-size - comp.unix.solarisError Using cardLayout.show with Java 1.4 - comp.lang.java.gui ... Emacs Plugin - comp.emacs emacs error: max-specpdl-size - comp.unix.solaris Hi all When I try to build ... Error in a ODS LAYOUT - comp.soft-sys.sasError Using cardLayout.show with Java 1.4 - comp.lang.java.gui ... About sgpanel - comp.soft-sys.sas However, I did have some problems with the code which you show above ... i have aproblem in my code - comp.os.ms-windows.programmer.win32 ...Error Using cardLayout.show with Java 1.4 - comp.lang.java.gui ... 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 ... How can I solve in HTTP error code in 111 - comp.lang.java ...Hi!To my all friends,I am being faced with the problem in J2EE web application.AlthoughI've been run the Tomcat Web Server,the Browser show error inCo... Make a simple 4 row by 4 column scratch pad. - comp.lang.java.help ...... testing/reading there was coding error of ... 1, low level. Use a Canvas or JPanel. Use paintComponent ... JPanel in JTable cell - comp.lang.java.gui Make a simple 4 row by ... Cross Platform Dicom Viewer - MAYAM - comp.protocols.dicom ...Multiple Studies viewer using Layout,Tab view 8. ... In this mode the absolute error between the source ... testing your software on a Windows XP SP3 Box, Java RT 1 ... Matlab crashes on Mac OS X Snow Leopard 10.6.3 - comp.soft-sys ...... the gui frames; for example. with the default layout, if ... Stepping 10, GenuineIntel Virtual Machine: Java 1.6.0 ... It doesn=B4t eve= n give me an error message. > My ... CardLayout (Java 2 Platform SE v1.4.2)Determines the preferred size of the container argument using this card layout. ... IllegalArgumentException - if the constraint is not a string. See Also: show(java ... java.com: Java + YouGet the latest Java Software and explore how Java technology provides a better digital experience. 7/29/2012 6:19:57 PM
|
|
|
|
|
|
|
|
|