⑴ 三星java程序隐藏虚拟键盘
方法如下所示:
1、首先下载一个文件管理器‘minicommander’(以下简称MC),这个网络上多的是,不过要注意,必须下载4.2版本的!之前的版本都不行!
2、在手机上运行MC,选中你要修改的jar文件(以粉色显示,很容易与其他文件区分),在虚拟键盘上点OK打开它 就会看到META-INF文件夹 ,然后点OK打开它 就会看到MANIFEST.MF文件。
3、在虚拟键盘上点数字 4 键 选择第一项 UTF-8 然后再打开它就会看见一系列字符。
4、在该文件的最后添加“MIDlet-Touch-Support: True”(不含引号),大小写一点不能错,而且冒号之后有一个空格,没有这个空格将造成修改失败!一定要换行添加!不要跟它原来的字符同行!但是多间隔几行没关系!
5、修改好之后,点虚拟键盘的右软键,选择保存,染后按左软建推出文本编辑。
6、长按两下拨号键返回jar所在目录(程序会弹出替换文件的提示,等一会就好了,等待时间与文件大小有关,别太急,更不能强退!等不及的可以先最小化)。
7、退出MC(按右软建——退出),进入存放jar文件的那个目录,点击安装就行啦!
⑵ 如何在手机java游戏中插入虚拟键盘
给你一个例子,用AWT包可以实现,但是,不知你是要标准26键盘,还是手机数字键盘:
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;
import java.io.IOException;
/**
*
*/
/**
* @author samuel
*
*/
public class RobotExp {
public static void pressKey(Robot robot, int keyvalue) {
robot.keyPress(keyvalue);
robot.keyRelease(keyvalue);
}
public static void pressKeyWithShift(Robot robot, int keyvalue) {
robot.keyPress(KeyEvent.VK_SHIFT);
robot.keyPress(keyvalue);
robot.keyRelease(keyvalue);
robot.keyRelease(KeyEvent.VK_SHIFT);
}
public static void closeApplication(Robot robot) {
// pressKey(robot, KeyEvent.VK_ALT);
// pressKey(robot, KeyEvent.VK_F4);
robot.keyPress(KeyEvent.VK_ALT);
robot.keyPress(KeyEvent.VK_F4);
robot.keyRelease(KeyEvent.VK_ALT);
robot.keyRelease(KeyEvent.VK_F4);
// for linux.
// robot.keyPress(KeyEvent.VK_ALT);
// robot.keyPress(KeyEvent.VK_W);
// robot.keyRelease(KeyEvent.VK_ALT);
// robot.keyRelease(KeyEvent.VK_W);
robot.keyPress(KeyEvent.VK_N);
robot.keyRelease(KeyEvent.VK_N);
}
public static void main(String[] args) throws IOException {
try {
Robot robot = new Robot();
Runtime.getRuntime().exec("notepad");
// For linux.
// Runtime.getRuntime().exec("gedit");
// 定义5秒的延迟以便你打开notepad 哈哈
// Robot 开始写
robot.delay(3000);
for (int i = 0; i < 100; i++) {
pressKeyWithShift(robot, KeyEvent.VK_H);
pressKey(robot, KeyEvent.VK_I);
pressKey(robot, KeyEvent.VK_SPACE);
// pressKeyWithShift(robot, KeyEvent.VK_H);
pressKeyWithShift(robot, KeyEvent.VK_I);
pressKey(robot, KeyEvent.VK_SPACE);
pressKey(robot, KeyEvent.VK_A);
pressKey(robot, KeyEvent.VK_M);
pressKey(robot, KeyEvent.VK_SPACE);
pressKey(robot, KeyEvent.VK_T);
pressKey(robot, KeyEvent.VK_H);
pressKey(robot, KeyEvent.VK_E);
pressKey(robot, KeyEvent.VK_SPACE);
pressKey(robot, KeyEvent.VK_J);
pressKey(robot, KeyEvent.VK_A);
pressKey(robot, KeyEvent.VK_V);
pressKey(robot, KeyEvent.VK_A);
pressKey(robot, KeyEvent.VK_SPACE);
pressKey(robot, KeyEvent.VK_R);
pressKey(robot, KeyEvent.VK_O);
pressKey(robot, KeyEvent.VK_B);
pressKey(robot, KeyEvent.VK_O);
pressKey(robot, KeyEvent.VK_T);
// VK_ENTER
pressKey(robot, KeyEvent.VK_ENTER);
// pressKey(robot, KeyEvent.);
}
closeApplication(robot);
// robot.keyPress(KeyEvent.VK_SPACE);
} catch (AWTException e) {
e.printStackTrace();
}
}
}
⑶ 如何设置java虚拟键盘
分和果币是什么?站内每次下载与求助都需要果币,点击查看如何获得!
⑷ 如何在JAVA里添加虚拟键盘
设置-程序管理-已安装的程序-点你想要的程序套件设备*屏幕键盘!
⑸ java 调用系统虚拟键盘
不行,这个做不到,智能手机才可以做到的。不过java程序的特点就在这里,它用虚拟机技术,技术java应用程序出错也不会对手机底层系统软件造成影响。
⑹ 安卓全触手机,运行java怎样才能弄出虚拟键盘
和S60第五版一样,安卓JAVA模拟器则是自带键盘的,如果你的没有可以换一个模拟器,实在不行就是JAVA软件本身的问题了。
⑺ 5230怎么取消java软件中的虚拟键盘
打开设置…程序管理…已安装程序,找到你要取消的软件,点选项…套件设置…取消虚拟键盘
⑻ java虚拟键盘去除
在jad里添加关闭虚拟键盘的属性:Nokia-MIDlet-On-Screen-Keypad:no