2017-03-18 3 views
2

양식의 제목 표시 줄을 숨기거나 없애려면 어떻게합니까?양식의 제목 표시 줄을 숨기거나 없애려면 어떻게합니까? 코드 명 원

Form 클래스를 만든 다음 shouldPaintStatusBar()를 재정 의하여 만들려고했으나 제대로 작동하지 않았습니다.

전체 코드 : 이것과

public class SplashScreenOp { 
    private Resources theme; 
    private Form splashForm; 
    public Form getForm() { 
     return splashForm; 
    } 

    public SplashScreenOp(Resources theme) { 
     super(); 
     this.theme = theme; 
    } 

    public final void show() { 
     splashForm = new Form(new BorderLayout()); 
     Image splashScreenImage = theme.getImage("splashscreen.png"); 
     ScaleImageLabel scaleImageLabel = new ScaleImageLabel(splashScreenImage); 
     splashForm.add(BorderLayout.CENTER, scaleImageLabel); 
     splashForm.show(); 
    } 
} 

정도로 이미지 만이 표시되어야 스플래시 페이지이다. 즉. 제목 표시 줄이 없습니다.

답변

4

전 세계에서 Toolbar을 사용하고 있다고 가정합니다. 당신은 어떤 TitleCommand를 추가하지 않음으로써 아래 중 하나를 호출하여 (또는 둘 다) 제목 표시 줄을 숨길 수 :

splashForm.getToolbar().setUIID("Container"); 

을 :

splashForm.getToolbar().hideToolbar(); 
+0

감사합니다, 그것은했다! (나는 그것을 작동시키기 위해서 두 가지 모두를 호출해야했다.) – ikevin8me

관련 문제