private void createIcons() {
    QListWidgetItem configButton = new QListWidgetItem(contentsWidget);
    configButton.setIcon(new QIcon("classpath:com/trolltech/examples/images/config.png"));
    configButton.setText(tr("Configuration"));
    configButton.setTextAlignment(AlignmentFlag.AlignHCenter.value());
    configButton.setFlags(ItemFlag.ItemIsSelectable, ItemFlag.ItemIsEnabled);

    QListWidgetItem updateButton = new QListWidgetItem(contentsWidget);
    updateButton.setIcon(new QIcon("classpath:com/trolltech/examples/images/update.png"));
    updateButton.setText(tr("Update"));
    updateButton.setTextAlignment(AlignmentFlag.AlignHCenter.value());
    updateButton.setFlags(ItemFlag.ItemIsSelectable, ItemFlag.ItemIsEnabled);

    QListWidgetItem queryButton = new QListWidgetItem(contentsWidget);
    queryButton.setIcon(new QIcon("classpath:com/trolltech/examples/images/query.png"));
    queryButton.setText(tr("Query"));
    queryButton.setTextAlignment(AlignmentFlag.AlignHCenter.value());
    queryButton.setFlags(ItemFlag.ItemIsSelectable, ItemFlag.ItemIsEnabled);

    contentsWidget.currentItemChanged.connect(
        this, "changePage(QListWidgetItem , QListWidgetItem)");
  }