java中打开说明文档

if (e.getSource() == itemUseAbout) { // 选择使用说明菜单,打开使用说明的.doc文档
            try {
                Process openfile;
                openfile = Runtime.getRuntime().exec(
                        "cmd /k start .\\config\\Monkey.doc");
                System.out.println(openfile.toString());

            } catch (IOException e1) {
                // TODO Auto-generated catch block
                e1.printStackTrace();
            }

        }

posted @ 2015-05-15 16:02  阳光穿透泛白的记忆  阅读(212)  评论(0编辑  收藏  举报