转换的奇怪行为

时间:2011-11-03 05:46:46

标签: java-me transition lwuit lwuit-form

我将transitions设置为表单:

public class Ecran extends Form {

    private Transition transIn = CommonTransitions.createSlide(CommonTransitions.SLIDE_VERTICAL, true, 250);
    private Transition transOut = CommonTransitions.createSlide(CommonTransitions.SLIDE_VERTICAL, false, 250);

    public Ecran()
    {
        super();
        setTransitionInAnimator(transIn);
        setTransitionOutAnimator(transOut);
    }

    public Ecran(String titre)
    {
        super(titre);
        setTransitionInAnimator(transIn);
        setTransitionOutAnimator(transOut);
    }
}

public class MenuPrincipalForm extends Ecran implements ActionListener, FocusListener, Runnable 
{
   ...
}

问题是在运行时transition幻灯片两次!那么如何让它只滑一次?

1 个答案:

答案 0 :(得分:0)

仅使用表单的外转换。转换为表单提供了更详细的案例,对于对话等案例非常有用。