Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » 移动互联网  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 eclipseME中的j2me开发是怎么找到资源文件的??
xgqking





发贴: 2
积分: 0
于 2004-11-03 10:56 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
原来在WTK 有res文件夹,可用eclipse 怎么就没找到类似的文件夹

放到根目录下,还是没找到

private Image img = null;

try{
img = Image.createImage("/back.png"); // 谁能告诉"/back.png" 该怎么写
}catch(IOException e)
{

}



作者 Re:eclipseME中的j2me开发是怎么找到资源文件的?? [Re:xgqking]
debussy





发贴: 1
积分: 0
于 2004-12-31 09:47 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
private Image img = null;

try{
img = Image.createImage("../back.png");
}catch(IOException e)
{

}
是不是该这样?初学,不能确认。



作者 Re:eclipseME中的j2me开发是怎么找到资源文件的?? [Re:xgqking]
Jquiet





发贴: 1
积分: 0
于 2005-01-04 09:38 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
你可以把资源文件放到一个目录中,比如叫resource,然后在项目的java build path设置中把这个目录设为源代码目录。



flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923