Topic: 请问有什么办法能够在swing写成的面板上点击可以直接打开chm文件? |
Print this page |
1.请问有什么办法能够在swing写成的面板上点击可以直接打开chm文件? | Copy to clipboard |
Posted by: mukokawa Posted on: 2003-01-27 22:59 请问有什么办法能够在swing写成的面板上点击可以直接打开chm文件? 多谢!大侠们 |
2.Re:请问有什么办法能够在swing写成的面板上点击可以直接打开chm文件? [Re: mukokawa] | Copy to clipboard |
Posted by: Biubiu Posted on: 2003-01-28 12:56 mukokawa wrote: 现在的人可真是什么都敢想。 |
3.Re:请问有什么办法能够在swing写成的面板上点击可以直接打开chm文件? [Re: Biubiu] | Copy to clipboard |
Posted by: 烂泥 Posted on: 2003-01-29 00:52 Biubiu wrote: 只有想不到,没有做不到 |
4.Re:请问有什么办法能够在swing写成的面板上点击可以直接打开chm文件? [Re: mukokawa] | Copy to clipboard |
Posted by: floater Posted on: 2003-01-29 01:08
*sigh*, agreed wholeheartly. This is not a reasonable user requirement. We, application developers, should have a common sense to do the right thing because customers are most likely not tech-savvy. You can use JNI to call system functions to do this, but this will likely come back and bite you. My 2 cents. |
5.Re:请问有什么办法能够在swing写成的面板上点击可以直接打开chm文件? [Re: mukokawa] | Copy to clipboard |
Posted by: taogang Posted on: 2003-02-14 22:57 in fact, it's pretty easy in windows platform: try this: Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler file://D:/WINNT/Help/aclui.chm"); /* * file://D:/WINNT/Help/aclui.chm is a chm file's URL */ it works for me. you will have to get or write a chm viewer if running on other platforms |
6.Re:请问有什么办法能够在swing写成的面板上点击可以直接打开chm文件? [Re: mukokawa] | Copy to clipboard |
Posted by: floater Posted on: 2003-02-14 23:28 If you have to do this, it would be better to isolate the platform dependencies. |
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 |