public void setTable() {
    
        // Centering the first two column's cell content
        DefaultTableCellRenderer centerRenderer = new DefaultTableCellRenderer();
        centerRenderer.setHorizontalAlignment( JLabel.CENTER );
        questionTable.getColumnModel().getColumn(0).setCellRenderer( centerRenderer );
        questionTable.getColumnModel().getColumn(1).setCellRenderer( centerRenderer );
    
        // Set the columns width
        TableColumn column = null;
        for (int i = 0; i < 3; i++) {
            column = questionTable.getColumnModel().getColumn(i);
            if (i == 0) {
                column.setPreferredWidth(10); //sport column is bigger
            } else if (i == 1) {
                column.setPreferredWidth(30);
            } else {
                column.setPreferredWidth(780);
            }
        } 
        
    }