From 807782efea682664801fad0a209d3a5eb78f7851 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 19 Nov 2016 10:53:43 +0100 Subject: [PATCH] Added the Basque flag. --- .../util/gui/countryBox/CountryComboBox.java | 20 +++++++++--------- Mage.Client/src/main/resources/flags/bq.png | Bin 0 -> 441 bytes 2 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 Mage.Client/src/main/resources/flags/bq.png diff --git a/Mage.Client/src/main/java/mage/client/util/gui/countryBox/CountryComboBox.java b/Mage.Client/src/main/java/mage/client/util/gui/countryBox/CountryComboBox.java index 938c9b9a169..5fee4088d09 100644 --- a/Mage.Client/src/main/java/mage/client/util/gui/countryBox/CountryComboBox.java +++ b/Mage.Client/src/main/java/mage/client/util/gui/countryBox/CountryComboBox.java @@ -32,11 +32,12 @@ import javax.swing.JComboBox; /** * A custom combo box with its own renderer and editor. + * * @author wwww.codejava.net * */ public class CountryComboBox extends JComboBox { - + private final DefaultComboBoxModel model; public static String[][] countryList = { @@ -60,6 +61,7 @@ public class CountryComboBox extends JComboBox { {"Bahrain", "bh"}, {"Bangladesh", "bd"}, {"Barbados", "bb"}, + {"Basque", "bq"}, {"Belarus", "by"}, {"Belgium", "be"}, {"Belize", "bz"}, @@ -285,9 +287,8 @@ public class CountryComboBox extends JComboBox { {"Western Sahara", "eh"}, {"Yemen", "ye"}, {"Zambia", "zm"}, - {"Zimbabwe", "zw"}, - }; - + {"Zimbabwe", "zw"},}; + @SuppressWarnings("unchecked") public CountryComboBox() { model = new DefaultComboBoxModel(); @@ -296,12 +297,12 @@ public class CountryComboBox extends JComboBox { setEditor(new CountryItemEditor()); addItems(countryList); } - + /** - * Add an array items to this combo box. - * Each item is an array of two String elements: - * - first element is country name. - * - second element is path of an image file for country flag. + * Add an array items to this combo box. Each item is an array of two String + * elements: - first element is country name. - second element is path of an + * image file for country flag. + * * @param items */ @SuppressWarnings("unchecked") @@ -315,6 +316,5 @@ public class CountryComboBox extends JComboBox { public Object getSelectedItem() { return super.getSelectedItem(); //To change body of generated methods, choose Tools | Templates. } - } diff --git a/Mage.Client/src/main/resources/flags/bq.png b/Mage.Client/src/main/resources/flags/bq.png new file mode 100644 index 0000000000000000000000000000000000000000..4e0bc9b9131821f0c031ed77e5b3421026e83987 GIT binary patch literal 441 zcmV;q0Y?6bP)+$W%j=LnR&@KcDawg zkH~Yc*W~@g!L0QDkBE&U0~6EZ6Z;n%2uw2<{LR9YeC|W|l~0V1{k#|$82&Rd98lz1 zWFWx)=YO4H6cZC;W{s+9&PT2z5}${b$gA j^^@^G!*x;i&FVY=rE8HCei)xE00000NkvXXu0mjf(YDuN literal 0 HcmV?d00001