gbc.gridx = 0;
gbc.gridy = 0;
gbc.weightx = 1.0;
gbc.fill = GridBagConstraints.BOTH;
Pack pack;
boolean show;
int count = 0;
for (PackCard card : this.cards) {
show = true;
pack = card.getPack();
if (keep) {
if (!this.searchField.getText().isEmpty()) {
if (!Pattern.compile(Pattern.quote(this.searchField.getText()),
Pattern.CASE_INSENSITIVE).matcher(pack.getName()).find()) {
show = false;
}
}
if (this.searchDescBox.isSelected()) {
if (Pattern.compile(Pattern.quote(this.searchField.getText()),
Pattern.CASE_INSENSITIVE).matcher(pack.getDescription()).find()) {
show = true;
}
}
if (this.serversBox.isSelected()) {
if (!pack.canCreateServer()) {
show = false;
}
}
if (privateBox.isSelected()) {
if (!pack.isPrivate()) {
show = false;
}
}
if (show) {