//Unused
break;
case TableModelEvent.UPDATE:
ArrayList<Search> searches = new ArrayList<Search>();
searches.addAll(Settings.getInstance().getSearches());
Search search = searches.get(row);
String label = search.getLabel();
String url = search.getLink();
String value = (String) searchTableModel.getValueAt(row, col);
if(col==0 && !value.isEmpty()) {
label = value;
}
if(col==1) {
try {
new URL(value);
if(value.contains("#showtitle#")) {
url = value;
}
else {
JOptionPane.showMessageDialog(frame, value + " must contain the search parameter #showtitle#, please try again.", "Warning: Invalid url", JOptionPane.ERROR_MESSAGE);
}
}
catch (MalformedURLException exception) {
//searchTableModel.setValueAt(""+url,row, col);
JOptionPane.showMessageDialog(frame, value + " is not a valid url, please try again.", "Warning: Invalid url", JOptionPane.ERROR_MESSAGE);
}
}
search.setLabel(label);
search.setLink(url);
updatesearchTable(true);
break;
case TableModelEvent.DELETE:
//Unused
break;