Active Visual Scaffolding by Charles Kelemen and Eugene Turk

Last of current infrastructure code follows:

public boolean greaterthan(int index1, int index2) { highlight(index1); highlight(index2); unhighlight(index1); unhighlight(index2); return studentArray[index1] > studentArray[index2]; } public boolean lessthan(int index1, int index2) { highlight(index1); highlight(index2); unhighlight(index1); unhighlight(index2); return studentArray[index1] < studentArray[index2]; } public void pause() { try { Thread.sleep (delay); } catch (InterruptedException e) { System.out.println("Error: sleep interrupted.\n"); } } .... public void mousePressed(MouseEvent e) { highlightedIndex.setText("(" + e.getX() + ", " + e.getY() + ")"); } }

To pvwtalk16