我设置transitions
为 Form :
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
幻灯片两次!那么如何让它只滑动一次呢?