Java3 [java] Runtime.getRuntime() 다른 프로그램 실행 [java] Runtime.getRuntime() 다른 프로그램 실행 자바 코딩시 익스플로러를 띄우고 싶을때 사용하면 유용함. 1 2 3 4 5 Runtime rt = Runtime.getRuntime(); try{ rt.exec("c:/Program Files/Internet Explorer/iexplore.exe " + "http://www.naver.net"); }catch(java.io.IOException ee){} Colored by Color Scripter cs 2017. 1. 3. [java] 시스템트레이 구현하기 [java] 시스템트레이 구현하기 자바 1.6 부터는 API를 제공함 그이하버전에는 Jdesktop 통합 JDIC 를 다운받아서 사용해야 한다고함. 시스템 트레이 구현소스 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 Runnable runner = new Runnable() { public void run() { if (SystemTray.isSupported()) { SystemTray tray = SystemTray.getSystemTray(); Image image = Toolkit.getDefaultToolkit().getImag.. 2017. 1. 2. [java + mysql] select, insert, update 예제 [java + mysql] select, insert, update 예제 1. mysql 구조 1 2 3 4 5 6 7 8 9 10 11 12 -- -- 테이블 구조 `test` -- CREATE TABLE IF NOT EXISTS `test` ( `no` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, `memo` text NOT NULL, `regdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`no`) ) ENGINE=MyISAM DEFAULT CHARSET=euckr; Colored by Color Scripter cs.. 2017. 1. 2. 이전 1 다음