tmp
[RRRRHHHH_Code] / ruralHouses / src / gui / ModifyHouseGUI.java
index 106a78b..6d980d1 100644 (file)
@@ -5,7 +5,6 @@ import java.awt.event.ActionListener;
 import java.awt.event.ItemEvent;
 import java.awt.event.ItemListener;
 
-
 import javax.swing.DefaultComboBoxModel;
 import javax.swing.JButton;
 import javax.swing.JComboBox;
@@ -48,13 +47,14 @@ public class ModifyHouseGUI extends JFrame {
        private JButton btnConfirm;
        private JComboBox<RuralHouse> houseBox;
        private RuralHouse rh;
+       private  JComboBox<String> comboBox;
 
        /**
         * Create the frame.
         */
-       public ModifyHouseGUI(Owner o) {
+       public ModifyHouseGUI(final Owner o) {
                this.distric=Districs.longNames();
-               JComboBox<String> comboBox = new JComboBox<String>(new DefaultComboBoxModel<String>(
+                comboBox = new JComboBox<String>(new DefaultComboBoxModel<String>(
                                this.distric));
                this.getContentPane().setLayout(null);
                owner = o;