question: static void showMessageDialog ( String message , String title , int messageType ) { JOptionPane pane = new JOptionPane ( new SelectableLabel ( message ) , messageType ) ; JDialog dialog = pane . createDialog ( title ) ; dialog . setDefaultCloseOperation ( JDialog . HIDE_ON_CLOSE ) ; setLocation ( dialog ) ; dialog . setVisible ( true ) ; dialog . dispose ( ) ; }
target:  Show a message dialog with specified, selectable message.