public void changePanel(EventPanelInfo epi) {
    JPanel newButtonPanel = new JPanel();
    label.setText("\n" + epi.getText());

    // format the text
    SimpleAttributeSet bSet = new SimpleAttributeSet();
    StyleConstants.setAlignment(bSet, StyleConstants.ALIGN_CENTER);
    StyleConstants.setFontFamily(bSet, "lucida typewriter bold");
    StyleConstants.setFontSize(bSet, 24);
    StyledDocument doc = label.getStyledDocument();
    doc.setParagraphAttributes(0, doc.getLength(), bSet, false);

    System.out.println("label.getText(): " + label.getText());

    int buttonCount = epi.getButtonCount();
    for (int i = 0; i < buttonCount; i++) {
      JButton button = epi.getButtonAtIndex(i);
      newButtonPanel.add(button);
    }
    master.remove(buttonPanel);
    buttonPanel = newButtonPanel;
    master.add(label, BorderLayout.CENTER);
    master.add(buttonPanel, BorderLayout.SOUTH);
  }