Created
November 28, 2016 17:25
-
-
Save Curookie/0c9355287afc02ffff2254c0990db5f1 to your computer and use it in GitHub Desktop.
자바 JOptionPane.showMessageDialog GUI 메시지/확인/입력창 띄우기
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JOptionPane.showMessageDialog(null, "기본 알림창입니다."); | |
JOptionPane.showMessageDialog(null, "경고 메시지 내용", "경고 메시지 제목", JOptionPane.WARNING_MESSAGE); | |
JOptionPane.showMessageDialog(null, "오류 메시지 내용", "오류 메시지 제목", JOptionPane.ERROR_MESSAGE); | |
JOptionPane.showMessageDialog(null, "아이콘 없는 메시지 내용", "아이콘 없는 메시지 제목", JOptionPane.PLAIN_MESSAGE); | |
JOptionPane.showMessageDialog(null, "정보 메시지 내용", "정보 메시지 제목", JOptionPane.INFORMATION_MESSAGE); | |
JOptionPane.showMessageDialog(null, "질문 메시지 내용", "질문 메시지 제목", JOptionPane.QUESTION_MESSAGE); | |
JOptionPane.showConfirmDialog(null, "기본 확인창입니다."); | |
JOptionPane.showConfirmDialog(null, "경고 메시지 + 예/아니오 옵션", "제목표시줄", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE); | |
JOptionPane.showInputDialog(null, "기본 입력창입니다."); | |
String[] selections = {"첫번째값", "두번째값", "세번째값"}; | |
JOptionPane.showInputDialog(null, "selectionValues를 이용해서\n선택창으로 만들어봅니다.", "제목표시줄", JOptionPane.QUESTION_MESSAGE, null, selections, "두번째값"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment