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 );
}

