ScoreView view = score.getView();  if (view == null) {  view = new ScoreView(score); } else {  view.computePositions(); }   int index = component.indexOfComponent(view.getComponent());  if (index == -1) { views.add(view);  component.addTab(score.getName(), null, view.getComponent(), score.getRadix()); index = component.indexOfComponent(view.getComponent()); }   if (pagPt == null) { if (logger.isDebugEnabled()) { logger.debug("No focus specified on Score side"); }   Sheet sheet = score.getSheet();  if (sheet != null) {      } }  if (pagPt != null) {  view.setFocus(pagPt); }  return index;
return setScoreView(score, null);
    public int setScoreView (Score score,                             PagePoint pagPt)    {        if (logger.isDebugEnabled()) {            logger.debug("setScoreView score=" + score + " pagPt=" + pagPt);        }        if (score != null) {            // Make sure we have a proper score view            ScoreView view = score.getView();            if (view == null) {                // Build a brand new display on this score                view = new ScoreView(score);            } else {                // So that scroll bars be OK                view.computePositions();            }            // Make sure the view is part of the tabbed pane            int index = component.indexOfComponent(view.getComponent());            if (index == -1) {                views.add(view);                // Insert in tabbed pane                component.addTab(score.getName(), null,                                 view.getComponent(), score.getRadix());                index = component.indexOfComponent(view.getComponent());            }            // Focus info            if (pagPt == null) {                if (logger.isDebugEnabled()) {                    logger.debug("No focus specified on Score side");                }                // Does the sheet view has a defined focus ?                Sheet sheet = score.getSheet();                if (sheet != null) {//                     SheetView sheetView = sheet.getView();//                     if (sheetView != null) {// //                         pagPt = sheetView.getFocus();//                     }                }            }            if (pagPt != null) {                // Use this focus information                view.setFocus(pagPt);            }            return index;        } else {            return -1;        }    }