String onText = s1; String doneText = s2; String offText = "       "; int count = 0; try { while (blinking) { Thread.sleep(500); if (count%2 == 0) { status.setText(offText); } else { status.setText(onText); } count++; } status.setText(doneText); } catch (InterruptedException ex) { status.setText(doneText);
setCursor(wait);  TableModel m = answerAll.getModel();  String name = names[row]; status.setText("Getting " + name); String title = (String) m.getValueAt(row, 1); if (title.equals("")) docHtmlFrame.setTitle(name); else docHtmlFrame.setTitle(title); currentDocId = docids[row];  int [] ids = new int[1]; ids[0] = currentDocId;  ParsedDocument[] docs = env.documents(ids); currentParsedDoc = docs[0]; String myDocText = currentParsedDoc.text;  docHtmlPane.setContentType("text/html"); docHtmlPane.setText(myDocText);  docHtmlPane.setCaretPosition(0); if (! docHtmlFrame.isShowing()) { docHtmlFrame.setLocationRelativeTo(query); docHtmlFrame.setVisible(true);
		public void run() {		    String onText = s1;		    String doneText = s2;		    String offText = "       ";		    int count = 0;		    try {			while (blinking) {			    Thread.sleep(500);			    if (count%2 == 0) {				status.setText(offText);			    } else {				status.setText(onText);			    }			    count++;			}			status.setText(doneText);		    } catch (InterruptedException ex) {			status.setText(doneText);		    }		}