[Swing] 메세지창 띄우기, JOptionPane.showConfirmDialog, JOptionPane.showMessageDialog
import javax.swing.JOptionPane; 이걸 임포트하면 자유롭게 쓸수있다. int JOptionPane.showConfirmDialog(Component parentComponent, Object message, String title, int optionType,int messageType, Icon icon); parentComponent = 이것을 띄어줄 상위 컴포넌트. 이것이 지정된 프레임은 메세지창을 끄기전에 접근 불가. message = 내용 메세지 title = 상단 제목 optionType = 나올 버튼 갯수와 형태 messageType = 좌측 아이콘. 느낌표 물음표 등등.. optionType : //예,확인 = 0, 아니오 = 1, 취소 = 2 YES_NO_OPTIO..
더보기