private static void setTableValues(Table table, String[][] values) {
        try {
            int count = 0;
            table.setItemCount(values.length);
            for (TableItem item : table.getItems()) {
                item.setText(values[count]);
                count++;
            }
        } catch (IndexOutOfBoundsException e) {
            showMessage("Cannot set values to table: " + table.getToolTipText(), "Error");
        }
    }