# 대화상자 ## JOptionPane * `void showMessageDialog()` : 부모 컴포넌트, 메시지, 타이틀, 메시지 타입, 아이콘 * `int showOptionDialog()` : 부모 컴포넌트, 메시지, 타이틀, 옵션 타입, 메시지 타입, 아이콘, 옵션 목록, 초기값 * `int showConfirmDialog()` : 부모 컴포넌트, 메시지, 타이틀, 옵션 타입, 메시지 타입, 아이콘 * `String showInputDialog()` : 부모 컴포넌트, 메시지, 타이틀, 메시지 타입, 아이콘, 옵션 목록, 초기값 * `showInternalMessageDialog()` / `showInternalXXXDialog()` ## JColorChooser ## JFileChooser ## JDialog * `getContentPane()` / `setContentPane(Container)` * `setLocationRelativeTo(Component)` * `getDefaultCloseOption()` / `setDefaultCloseOption(int)` : DISPOSE_ON_CLOSE | DO_NOTHING_ON_CLOSE | HIDE_ON_CLOSE * `isDefaultLookAndFeelDecorated()` / `setDefaultLookAndFeelDecorated(boolean)` * `getModalityType()` / `setModalityType(Dialog.ModalityType)` ### ModalityType * Modeless type * Document-model type * Application-modal type * Toolkit-modal type * Exclusion mode