public MatchPlayersGroup(Composite parent, int style) {
    super(parent, style & ~SWT.BORDER);
    this.setLayout(new FormLayout());
    FormData formData;

    this.setText(Messages.getString("team"));
    this.setForeground(Colors.getBlueDescription());
    this.setFont(ConfigBean.getFontMain());

    matchPlayersTable = new MatchPlayersTable(this, SWT.FULL_SELECTION);

    ScrollBar bar = matchPlayersTable.getVerticalBar();

    formData = new FormData();
    formData.left = new FormAttachment(0, bar.getSize().x);
    formData.top = new FormAttachment(0, 5);
    formData.bottom = new FormAttachment(100, -5);
    formData.right = new FormAttachment(100, -5);
    matchPlayersTable.setLayoutData(formData);
  }
  public MatchPlayersTable(Composite parent, int style) {
    super(parent, style);

    comparator = new MatchPlayersComparator();
    comparator.setColumn(MatchPlayersComparator.NUMBER);
    comparator.setDirection(MatchPlayersComparator.ASCENDING);

    String[] columnsTooltips = {
      Messages.getString("table.match.substitutions.tooltip"),
      Messages.getString("table.match.number.tooltip"),
      Messages.getString("table.match.player.tooltip"),
      Messages.getString("table.match.formation.tooltip"),
      Messages.getString("table.match.time.tooltip"),
      Messages.getString("table.match.rating.tooltip"),
      Messages.getString("table.match.goals.tooltip"),
      Messages.getString("table.match.shoots.tooltip"),
      Messages.getString("table.match.assists.tooltip"),
      Messages.getString("table.match.fouls.tooltip"),
      Messages.getString("table.match.injury.tooltip"),
      Messages.getString("table.match.cards.tooltip"),
      " "
    };

    String[] columns = {
      " ",
      Messages.getString("table.match.number"),
      Messages.getString("table.match.player"),
      Messages.getString("table.match.formation"),
      Messages.getString("table.match.time"),
      Messages.getString("table.match.rating"),
      Messages.getString("table.match.goals"),
      Messages.getString("table.match.shoots"),
      Messages.getString("table.match.assists"),
      Messages.getString("table.match.fouls"),
      Messages.getString("table.match.injury"),
      Messages.getString("table.match.cards"),
      " "
    };

    for (int i = 0; i < columns.length; i++) {
      TableColumn column = new TableColumn(this, SWT.LEFT);
      column.setText(columns[i]);
      column.setResizable(false);
      column.setMoveable(false);

      if (i == columns.length - 1) {
        if (SettingsHandler.IS_LINUX) {
          column.pack();
        }
      } else {
        column.pack();
        column.setToolTipText(columnsTooltips[i]);
        column.addSelectionListener(new SortTableListener<PlayerStats>(this, comparator));
      }
      // column.pack();
    }

    this.setLinesVisible(false);
    this.setHeaderVisible(true);
    this.setBackground(parent.getBackground());
    this.setFont(ConfigBean.getFontTable());
  }