import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
-
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
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;