View Single Post
  #2 (permalink)  
Old 11-25-2009, 05:17 PM
Fubarable's Avatar
Fubarable Fubarable is offline
Moderator
 
Join Date: Jun 2008
Posts: 6,463
Rep Power: 8
Fubarable is on a distinguished road
Default
Create an ArrayList<String> and place the String you generate from the data returned into this list. Then create a String array from this list and show it in the JOptionPane. For instance:
Code:
      String[] strings = {"mon", "tues", "wed", "thurs", "fri"};
      
      List<String> stringList = new ArrayList<String>();
      for (String string : strings) {
         // here you will use instead this:
         // String string = "Document: "+idClient1+"\nName: "+NameClient+"\nDate: "+Date1
         stringList.add(string);
      }
      
      
      String[] stringArray = stringList.toArray(new String[0]);
      JOptionPane.showMessageDialog(null, stringArray);
__________________
When posting code, please use code tags so that your code is readable. To do this, place the tag [code] before your block of code and [/code] after your block of code.
How to use Code Tags
Reply With Quote