📄 myalert.java
字号:
import javax.microedition.lcdui.*;
public class Myalert {
Midlet midlet=null;
public Myalert(Midlet midlet)
{
this.midlet=midlet;
MyTextBox2 a=new MyTextBox2("mobile","空指针",90,TextField.ANY);
Display.getDisplay(midlet).setCurrent(alert, a);
}
Alert alert=new Alert("title","程序有异常",null,AlertType.INFO);
}
class MyTextBox2 extends TextBox
{
public MyTextBox2(String title, String content, int maxSize, int type) {
super(title, content, maxSize, type);
// TODO Auto-generated constructor stub
}}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -