⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 osxopenhack.java

📁 《SWING HACKS》源码 作者: Joshua Marinacci,Chris Adamson 著 徐晔 译 出版: 2007年2月
💻 JAVA
字号:
import java.io.*;

public class OSXOpenHack {

    public static void main(String[] args) throws Exception {
        Runtime rt = Runtime.getRuntime();
        //rt.exec("open notes.txt");
        //rt.exec("open .");
        //rt.exec("open http://www.yahoo.com/");
        
        //String cmd = "open -a Microsoft Word notes.txt";
        /*
        String[] cmd = {
            "open", 
            "-a", 
            "Microsoft Word",
            "notes.txt"
            };
            
        for(int i=0; i<cmd.length; i++) {
            System.out.println(cmd[i]);
        }
        rt.exec(cmd);
        */
        
        
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -