Computer Science Canada Simple Card Layout Problem |
Author: | _Dan_ [ Thu Sep 11, 2008 9:09 pm ] | ||
Post subject: | Simple Card Layout Problem | ||
I'm just starting to learn about layouts and I can't understand why the following code doesn't execute correctly. It's supposed to display Page 2 but instead it Displays Page 0 (the first page that was added to the applet), can anyone tell me what's wrong :S? Also, how do I implement a key listener that will detect when I press a key down in the active JPanel. Help is much appreciated!
|
Author: | TheFerret [ Fri Sep 12, 2008 2:02 am ] |
Post subject: | RE:Simple Card Layout Problem |
Take a look here http://java.sun.com/docs/books/tutorial/uiswing/layout/card.html |
Author: | _Dan_ [ Fri Sep 12, 2008 3:45 pm ] | ||
Post subject: | Re: Simple Card Layout Problem | ||
EDIT: {Prolly best to learn these things yourself as I did, anyways, resolved} Still doesn't work, now it displays none of the labels :<.
|
: |