public void initialize() {
        while (il == null)
            try {
                Thread.sleep(1);
            } catch (InterruptedException e) {
                continue;
            }

        // Set up staff.
        HBox[] staffLedgerLines = { staffExtLinesHighC, staffExtLinesHighA,
                staffExtLinesLowC, staffExtLinesLowA };
        staff = new Staff(staffLedgerLines, this, il, arrangementList);
        controlPanel = new Controls(staff, this, il, arrangementList);
        staff.setControlPanel(controlPanel);

        // Set up top line.
        instBLine = new ButtonLine(instLine, selectedInst, il, staff);
        selectedInst.setImage(il.getSpriteFX(ImageIndex.MARIO));

        topPanel = new PanelButtons(staff, this, il, instBLine);
        staff.setTopPanel(topPanel);

        arrangementList.setEditable(true);
        arrangementList.setStyle("-fx-font: 8pt \"Arial\";");
        // Hide all arranger features for now.
        arrangementList.setVisible(false);
        addButton.setVisible(false);
        deleteButton.setVisible(false);
        upButton.setVisible(false);
        downButton.setVisible(false);
    }