在三星E818手机上用TextField,结果不能输入任何东西?

yg1982 2005-08-12 01:18:31
TextField在三星E810的模拟器上可以输入,但在真机E818上却不能输入任何东西。
有朋友遇到过相同的问题吗?
谢谢
...全文
141 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
yg1982 2005-08-18
  • 打赏
  • 举报
回复
自己解决了,三星的机器真怪,moto和nokia的机器没有问题的。
msgForm.addCommand(send);
msgForm.addCommand(back);
msgForm.append(myMsg);

变为

msgForm.append(myMsg);
msgForm.addCommand(send);
msgForm.addCommand(back);
yg1982 2005-08-14
  • 打赏
  • 举报
回复
呵呵,以前的帖子只是说三星手机上的中文输入有问题。但没说不能输入任何东西啊。
是不是三星有自己的处理函数,或是根本不支持J2me的TextField?
网络咖啡 2005-08-13
  • 打赏
  • 举报
回复
不清楚发生了什么问题
hblzg 2005-08-13
  • 打赏
  • 举报
回复
这个好像是个老问题了,和三星的系统有关系。楼主看以前的帖子
yg1982 2005-08-12
  • 打赏
  • 举报
回复
有光标,但按键不起反应
efei 2005-08-12
  • 打赏
  • 举报
回复
不能输入是怎么回事?
是切换不了输入法,只能输入字母什么的
还是根本就没有光标,按什么都没有
yg1982 2005-08-12
  • 打赏
  • 举报
回复
import javax.microedition.lcdui.*;
import java.util.Vector;

/**************************************************
* @author Beetle
* 类功能介绍:
**************************************************/
public class Msg implements CommandListener {
private Main main;
private Display display;
private Connection conn;
private TextField myMsg;
private Form msgForm;
private Command send;
private Command back;
private Displayable tempDisplay;
/*******************************************************
* 功能介绍:构造函数
* 输入参数:无
*******************************************************/
public Msg(Main main, Display display,Connection conn) {
this.main = main;
this.display = display;
this.conn=conn;
send = new Command("发送", Command.OK, 1);
back = new Command("返回", Command.BACK, 1);
msgForm = new Form("聊天室");
myMsg = new TextField(null, "", 20, TextField.ANY);
msgForm.addCommand(send);
msgForm.addCommand(back);
msgForm.append(myMsg);
msgForm.setCommandListener(this);
}

public void commandAction( Command c,Displayable d) {
if (c == send ) {
String strTmp=myMsg.getString();
if (strTmp.length()==0){
return;
}
conn.sendOneData("13"+main.strUserName+"说: "+ strTmp);
myMsg.setString("");
}
else if (c == back) {
display.setCurrent(tempDisplay);
}
}

public void showForm() {
tempDisplay = display.getCurrent();
display.setCurrent(msgForm);
}

public void addMsg(String strTmp){
msgForm.append(strTmp+"\n");
if(msgForm.size() > 6){
msgForm.delete(1);
}
if (display.getCurrent()==msgForm){
display.setCurrent(msgForm);
}
}
}
delphiseabird 2005-08-12
  • 打赏
  • 举报
回复
不起反映没见过,不能输入中文倒是知道.
代码看看?

www.coderpub.com

13,100

社区成员

发帖
与我相关
我的任务
社区描述
Java J2ME
社区管理员
  • J2ME社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧