Hi, Im playing about with awt and Swing and Id like to create a wizard like dialog. I figured the easiest way at first glance was to use a cardlayout for the main part of the dialog. The problem Im having is that using the previous() and next() methods of CardLayout, I cant prevent my Next and Previous buttons from looping round to the first card again. Is there anyway I can test for the next card? Any help greatly appreciated! Cheers, Mark My code listing is below
I implemented a wizard using this same method for enabeling/disabeling the Next & Back buttons. It works fine on my Win machine (using JDK 1.2.2_006 and 1.3.0-C), however it doesn't on a Unix box running JDK 1.3.0. The "cancel" button is enabled, but none of the others are. My code looks like the above snipped. Any ideas..?