@Override
  protected void buttonClicked(JButton button)
  {
    if (button == cancel)
    {
      setVisible(false);
    }
    else if (button == execute)
    {
      try
      {
        int tbWidth = parseInt(thumbnailWidth, "Width of thumbnail");
        int tbHeight = parseInt(thumbnailHeight, "Height of thumbnail");
        int tbPadding = parseInt(thumbnailPadding, "Padding of thumbnail");
        
        if (Settings.values.updateThumbnailSpec(tbWidth, tbHeight, tbPadding))
        {
          Thumbnails.refreshAllThumbnails();
          Main.libraryFrame.refreshList();
          Main.libraryFrame.getInfoPanel().updateThumbnailSize();
        }
        
        // TODO: mey be to be removed later
        Tasks.saveSettings();
        setVisible(false);
      }
      catch (NumberFormatException e)
      {
        return;
      }
    }
  }