简体   繁体   English

更改背景颜色Java Me

[英]Change background color Java Me

I am developing a j2me midlet application with netbeans how ever I am new to java but I have developed all things i need. 我正在用netbeans开发一个j2me midlet应用程序,但是我对Java还是陌生的,但是我已经开发了我需要的所有东西。 But I cannot change background color or image when I run the jar file on mobile it show a transparent or white color background is there any possible way to change background color or image any answered will be appreciated. 但是,当我在移动设备上运行jar文件时,我无法更改背景颜色或图像,因为它显示透明或白色背景,所以有任何可能的方法来更改背景颜色或图像,任何回答都会受到赞赏。

You cannot do anything about the background when working with High Level GUI (meaning Form stuff). 使用高级GUI(意味着Form东西)时,您不能对背景做任何事情。 If you want to control the background, you'll need to use Canvas - but Form elements can't be used on a Canvas . 如果要控制背景,则需要使用CanvasForm元素不能在Canvas上使用。 Best option then is to use LWUIT. 最好的选择是使用LWUIT。 It gives you a set of elements like you have with Form , but because it uses Canvas you have much more options and such. 它提供了与Form一样的一组元素,但是由于它使用了Canvas ,因此具有更多选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM