브라우저 실행하기
-
java) 메모장 만들기 3) 윈도우 계산기 띄우기, 브라우저 실행하기, 팝업 메뉴 (+Desktop 클래스 / URI 클래스)JAVA/멀티스레드, 이벤트 2024. 5. 28. 19:26
▤ 목차" data-ke-type="html">HTML 삽입미리보기할 수 없는 소스✔ 윈도우 계산기 띄우기💻 코드로 보기else if (e.getSource() == mnuEtc1) { // 계산기 //exe (실행파일) 실행하기 try { Runtime runtime = Runtime.getRuntime(); runtime.exec("calc.exe"); } catch (Exception e2) { JOptionPane.showConfirmDialog(this, e2.getMessage()); } } ✔ 브라우저 실행하기💻 코드로 보기else if (e.getSource() == mnuEtc2) {// 브라우저 실행하기 try { String url = "https:/..