public void fireSetFocus(int fromCard,int toCard){

        java.awt.Component[] components = wizardPanel.getComponents();


        if(toCard > cardCount || toCard <= 0) return;
        ((WizardPanel)components[toCard-1]).focusGained(
        new java.awt.event.FocusEvent(components[toCard-1],java.awt.event.FocusEvent.FOCUS_GAINED));

        currentCard = toCard;

        if(cardCount == currentCard) finishButton.setEnabled(true);
        else finishButton.setEnabled(false);

        if(currentCard == 1) backButton.setEnabled(false);
        else backButton.setEnabled(true);

        if(currentCard == cardCount){
            cancelButton.setText("Finish");
            cancelButton.setMnemonic('F');
            nextButton.setEnabled(false);
        }else{
            cancelButton.setText("Cancel");
            cancelButton.setMnemonic('C');
            nextButton.setEnabled(true);
        }


        //System.out.println(fromCard+":"+toCard+":"+currentCard+":"+cardCount);


        if(fromCard > cardCount || fromCard <= 0) return;
        ((WizardPanel)components[fromCard-1]).focusLost(
        new java.awt.event.FocusEvent(components[fromCard-1],java.awt.event.FocusEvent.FOCUS_GAINED));





        /*
        for(int i=0;i< components.length;i++){
            if( components[i] instanceof WizardPanel || components[i].isShowing() || components[i].isVisible() ){
                System.out.println(i+":"+focus);
                if(focus)
                    ((WizardPanel)components[i]).focusGained(
                        new java.awt.event.FocusEvent(components[i],java.awt.event.FocusEvent.FOCUS_GAINED));
                else
                    ((WizardPanel)components[i]).focusLost(
                        new java.awt.event.FocusEvent(components[i],java.awt.event.FocusEvent.FOCUS_LOST));
                break;
            }
        }*/

    }