private void reloadCommandsTable() {
        while ( tableModel.getRowCount() > 0 )
            tableModel.removeRow(0);

        commands = settings.getCommands();
        for (Command c : commands) {
            String[] row = {c.name, c.content};
            tableModel.addRow(row);
        }
    }