我将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
幻灯片两次!那么如何让它只滑一次?
答案 0 :(得分:0)
仅使用表单的外转换。转换为表单提供了更详细的案例,对于对话等案例非常有用。