Stringselected=(String)JOptionPane.showInputDialog(this,"Select the best correction for the following sentence:\n "+sentence,"Correction Selection",JOptionPane.PLAIN_MESSAGE,null,options,options[0]);
if(selected!=null){
// Insert the selected correction into the trie for future reference