📄 listing15-08_splash.java_circumventingbugs
字号:
// Listing 15-8. Using the FullCanvas When the needsNokiaUiForSystemAlerts Bug Is Present
package com.apress.preprocessing;
import javax.microedition.lcdui.*;
public class Splash
//#if polish.midp2 && !polish.Bugs.needsNokiaUiForSystemAlerts
extends Canvas
//#elif polish.classes.fullscreen:defined
//#= extends ${polish.classes.fullscreen}
//#else
// hide extends clause from the IDE:
//# extends Canvas
//#endif
{
public void paint( Graphics g ) {
//#if polish.midp2 && !polish.Bugs.needsNokiaUiForSystemAlerts
setFullScreenMode( true );
//#endif
g.drawString( "Starting!", getWidth() / 2, getHeight() / 2,
Graphics.HCENTER | Graphics.BASELINE );
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -