try { for (int i = 0; i <= searchModel.getPageCount(); i++)
for (int i = 1; i <= searchModel.getPageCount(); i++) { try {
	public void actionPerformed(ActionEvent e) {		if (e.getActionCommand().equals("find")) {			stopButton.setEnabled(true);			try {				if (comboBox.getSelectedItem().equals("Directory"))					searchModel.setProvidor(new DirProvidor(textField.getText()));				else					searchModel.setProvidor(new YahooProvidor(textField.getText()));			} catch(IllegalArgumentException e1) {				JOptionPane.showMessageDialog(this.getParent(),						e1.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);			}			new Thread(new Runnable() {				public void run() {					try {						for (int i = 0; i <= searchModel.getPageCount(); i++)							searchModel.getPage(i);					} catch (IOException e) { // ignore					} finally {						EventQueue.invokeLater(new Runnable() {							public void run() {								stopButton.setEnabled(false);							}						});					}				}							}).start();		} else {			searchModel.stopLoading();		}	}