public void show(TreePath treePath) {
CodeAttribute attribute = (CodeAttribute)findAttribute(treePath);
if (byteCodeDisplay.getCodeAttribute() != attribute) {
BrowserComponent browserComponent = services.getBrowserComponent();
browserComponent.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
try {
byteCodeDisplay.setCodeAttribute(attribute, services.getClassFile());
counterDisplay.init(byteCodeDisplay);
byteCodeDisplay.scrollRectToVisible(RECT_ORIGIN);
scrollPane.validate();
scrollPane.repaint();
} finally {
browserComponent.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
}
}
}