listing13-21_mycustomitem.java_paintingbackground

来自「着几乎所有智能机厂商都将有自己配套的App Store,甚至并非智能手机制造商的」· JAVA_PAINTINGBACKGROUND 代码 · 共 11 行

JAVA_PAINTINGBACKGROUND
11
字号
// you need to paint a background only when for the current target device
// the J2ME Polish GUI is not used:

protected void paint( Graphics g, int width, int height ) {
	//#ifndef polish.usePolishGui
		// draw default background:
		g.setColor( this.backgroundColor );
		g.fillRect( 0, 0, this.width, this.height );
	//#endif
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?