|
|
@@ -24,15 +24,6 @@ public class ArmorPanel extends JPanel {
|
|
|
*
|
|
|
*/
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
- private JTextField armorNameField;
|
|
|
- private JTextField armorTypeField;
|
|
|
- private JTextField armorBonusField;
|
|
|
- private JTextField armorDexField;
|
|
|
- private JTextField checkField;
|
|
|
- private JTextField spellField;
|
|
|
- private JTextField speedField;
|
|
|
- private JTextField weightField;
|
|
|
- private JTextField propField;
|
|
|
|
|
|
public ArmorPanel(DDItem item) {
|
|
|
final DDArmor armor = item.getArmor();
|
|
|
@@ -122,7 +113,7 @@ public class ArmorPanel extends JPanel {
|
|
|
gbc_lblMaxDex.gridy = 1;
|
|
|
panel.add(lblMaxDex, gbc_lblMaxDex);
|
|
|
|
|
|
- armorNameField = new JTextField(item.getName());
|
|
|
+ JTextField armorNameField = new JTextField(item.getName());
|
|
|
GridBagConstraints gbc_armorNameField = new GridBagConstraints();
|
|
|
gbc_armorNameField.insets = new Insets(0, 0, 0, 0);
|
|
|
gbc_armorNameField.fill = GridBagConstraints.HORIZONTAL;
|
|
|
@@ -131,7 +122,7 @@ public class ArmorPanel extends JPanel {
|
|
|
panel.add(armorNameField, gbc_armorNameField);
|
|
|
armorNameField.setColumns(10);
|
|
|
|
|
|
- armorTypeField = new JTextField(armor.getType().toString());
|
|
|
+ JTextField armorTypeField = new JTextField(armor.getType().toString());
|
|
|
GridBagConstraints gbc_armorTypeField = new GridBagConstraints();
|
|
|
gbc_armorTypeField.insets = new Insets(0, 0, 0, 0);
|
|
|
gbc_armorTypeField.fill = GridBagConstraints.HORIZONTAL;
|
|
|
@@ -140,7 +131,7 @@ public class ArmorPanel extends JPanel {
|
|
|
panel.add(armorTypeField, gbc_armorTypeField);
|
|
|
armorTypeField.setColumns(10);
|
|
|
|
|
|
- armorBonusField = new JTextField(StringHelper.toSignedString(item.getArmor().getBonus()));
|
|
|
+ JTextField armorBonusField = new JTextField(StringHelper.toSignedString(item.getArmor().getBonus()));
|
|
|
armorBonusField.setHorizontalAlignment(SwingConstants.CENTER);
|
|
|
GridBagConstraints gbc_armorBonusField = new GridBagConstraints();
|
|
|
gbc_armorBonusField.insets = new Insets(0, 0, 0, 0);
|
|
|
@@ -150,7 +141,7 @@ public class ArmorPanel extends JPanel {
|
|
|
panel.add(armorBonusField, gbc_armorBonusField);
|
|
|
armorBonusField.setColumns(10);
|
|
|
|
|
|
- armorDexField = new JTextField(StringHelper.toSignedString(armor.getMaxDex()));
|
|
|
+ JTextField armorDexField = new JTextField(StringHelper.toSignedString(armor.getMaxDex()));
|
|
|
armorDexField.setHorizontalAlignment(SwingConstants.CENTER);
|
|
|
GridBagConstraints gbc_armorDexField = new GridBagConstraints();
|
|
|
gbc_armorDexField.fill = GridBagConstraints.HORIZONTAL;
|
|
|
@@ -237,7 +228,7 @@ public class ArmorPanel extends JPanel {
|
|
|
gbc_lblSpecialProperties.gridy = 0;
|
|
|
panel_1.add(lblSpecialProperties, gbc_lblSpecialProperties);
|
|
|
|
|
|
- checkField = new JTextField(StringHelper.toString(armor.getCheckPenalty()));
|
|
|
+ JTextField checkField = new JTextField(StringHelper.toString(armor.getCheckPenalty()));
|
|
|
checkField.setHorizontalAlignment(SwingConstants.CENTER);
|
|
|
GridBagConstraints gbc_checkField = new GridBagConstraints();
|
|
|
gbc_checkField.insets = new Insets(0, 0, 0, 0);
|
|
|
@@ -247,7 +238,7 @@ public class ArmorPanel extends JPanel {
|
|
|
panel_1.add(checkField, gbc_checkField);
|
|
|
checkField.setColumns(10);
|
|
|
|
|
|
- spellField = new JTextField(StringHelper.toString(armor.getSpellFailure()) + "%");
|
|
|
+ JTextField spellField = new JTextField(StringHelper.toString(armor.getSpellFailure()) + "%");
|
|
|
spellField.setHorizontalAlignment(SwingConstants.CENTER);
|
|
|
GridBagConstraints gbc_spellField = new GridBagConstraints();
|
|
|
gbc_spellField.insets = new Insets(0, 0, 0, 0);
|
|
|
@@ -257,7 +248,7 @@ public class ArmorPanel extends JPanel {
|
|
|
panel_1.add(spellField, gbc_spellField);
|
|
|
spellField.setColumns(10);
|
|
|
|
|
|
- speedField = new JTextField(StringHelper.toString(armor.getSpeed()));
|
|
|
+ JTextField speedField = new JTextField(StringHelper.toString(armor.getSpeed()));
|
|
|
speedField.setHorizontalAlignment(SwingConstants.CENTER);
|
|
|
GridBagConstraints gbc_speedField = new GridBagConstraints();
|
|
|
gbc_speedField.insets = new Insets(0, 0, 0, 0);
|
|
|
@@ -267,7 +258,7 @@ public class ArmorPanel extends JPanel {
|
|
|
panel_1.add(speedField, gbc_speedField);
|
|
|
speedField.setColumns(10);
|
|
|
|
|
|
- weightField = new JTextField();
|
|
|
+ JTextField weightField = new JTextField();
|
|
|
GridBagConstraints gbc_weightField = new GridBagConstraints();
|
|
|
gbc_weightField.insets = new Insets(0, 0, 0, 0);
|
|
|
gbc_weightField.fill = GridBagConstraints.HORIZONTAL;
|
|
|
@@ -276,7 +267,7 @@ public class ArmorPanel extends JPanel {
|
|
|
panel_1.add(weightField, gbc_weightField);
|
|
|
weightField.setColumns(10);
|
|
|
|
|
|
- propField = new JTextField();
|
|
|
+ JTextField propField = new JTextField();
|
|
|
GridBagConstraints gbc_propField = new GridBagConstraints();
|
|
|
gbc_propField.fill = GridBagConstraints.HORIZONTAL;
|
|
|
gbc_propField.gridx = 4;
|