gui optionpane help!!

hi, i need some help with the optionpane component in java gui, in the option pane i need to list the strings in the array called test ( i have labelled the place where they need to go as the word "something"), can anyone assist?

try{

// Create a FileReader and then wrap it with BufferedReader.

FileReader file_reader =new FileReader (file);

BufferedReader buf_reader =new BufferedReader (file_reader);

do{

String line = buf_reader.readLine ();

if (line ==null)break;

if(line.startsWith("busl")){String[] test = line.split(" ");

}

//System.out.println(test);

}while(true);

Object response = JOptionPane.showInputDialog(null,

"Select a bus line",

"Bus line", JOptionPane.QUESTION_MESSAGE,

null,new String[]{"something","something",

"something","something","something"},

"something");

}

catch (IOException e){

System.out.println ("IO exception =" + e );

}

[1997 byte] By [da_master_of_nuthina] at [2007-11-27 3:08:35]
# 1
Swing forum: http://forum.java.sun.com/forum.jspa?forumID=57
DrLaszloJamfa at 2007-7-12 3:56:48 > top of Java-index,Java Essentials,New To Java...