public static void showString(String title,String content,Dimension dimension){
  JTextArea area=new JTextArea(content);
  area.setEditable(false);
  JScrollPane scroll=new JScrollPane(area);
  scroll.setPreferredSize(dimension);
  JOptionPane.showMessageDialog(null,scroll,title,JOptionPane.INFORMATION_MESSAGE);
}

public static void showString ( String title , String content , Dimension dimension ) { JTextArea area = new JTextArea ( content ) ; area . setEditable ( false ) ; JScrollPane scroll = new JScrollPane ( area ) ; scroll . setPreferredSize ( dimension ) ; JOptionPane . showMessageDialog ( null , scroll , title , JOptionPane . INFORMATION_MESSAGE ) ; }
display a string ( can be long ) inside a message dialogue
