2017-03-04 3 views

답변

3

StateMachine.java 파일의 processBackground() 안에있는 UITimer으로 전화를 걸어 스플래시 화면을 지연시킬 수 있습니다.

StateMachine (스플래시가 GUI 작성기로 작성되지 않은 경우) 기본 서식에있을 수있는 스플래시 조작 방법에서 UITimer을 사용하여 다음 양식을 동일한 방법으로 표시하는 것을 지연하십시오.

@Override 
protected boolean processBackground(final Form f) { 
    //depends on your splash form's name 
    if ("Splash".equalsIgnoreCase(f.getName())) { 
     new UITimer(() -> { 
      //show your next form here 
     }).schedule(4000, false, f);// set the time to a longer time, currently 4 seconds 
    } 
    return false; 
} 
관련 문제