progressBar.setValue(page); revalidate(); repaint();
progressModel.setValue(page);
				public void run() {					try {						for (int i = 1; i <= searchModel.getPageCount(); i++) {							final ImageData[] thumbs = searchModel.getPage(i);							final int page = i;							EventQueue.invokeLater(new Runnable() {								public void run() {									ResultsPanel.this.addImages(thumbs);									progressBar.setValue(page);									revalidate();									repaint();								}							});						}					} catch (final IOException e) {						EventQueue.invokeLater(new Runnable() {							public void run() {								JOptionPane.showMessageDialog(ResultsPanel.this,										e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);							}						});					} finally  {						ResultsPanel.this.busy1 = false;						EventQueue.invokeLater(new Runnable() {							public void run() {								progressBar.setVisible(false);									revalidate();								repaint();							}						});					}				}