public void valueChanged(ListSelectionEvent arg0){
		locked = true;
		int index = getSelectedIndex();
		if (index != -1){
			romaji.setText(((Word) wlist.get(reverseIndex(index))).getRomaji());
			kana.setText(((Word) wlist.get(reverseIndex(index))).getKana());
			kanji.setText(((Word) wlist.get(reverseIndex(index))).getKanji());
			String type = ((Word)wlist.get(reverseIndex(index))).type;
			if (type.equals("noun")){
				buttonlist[0].setSelected(true);
			}
			if (type.equals("ru-verb")){
				buttonlist[1].setSelected(true);
			}
			if (type.equals("u-verb")){
				buttonlist[2].setSelected(true);
			}
			if (type.equals("irregular verb")){
				buttonlist[3].setSelected(true);
			}
			if (type.equals("na-adjective")){
				buttonlist[4].setSelected(true);
			}
			if (type.equals("i-adjective")){
				buttonlist[5].setSelected(true);
			}
		}
		locked = false;
	}