【发布时间】:2018-05-25 20:48:24
【问题描述】:
如何隐藏/删除表单上的标题栏?
我试图通过创建一个自定义的 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();
}
}
因为这是一个启动页面,所以应该只显示图像。 IE。没有标题栏。
【问题讨论】:
标签: codenameone