private void addJTabbedPaneListener() {
ChangeListener changeListener = new ChangeListener() {
public void stateChanged(ChangeEvent changeEvent) {
JTabbedPane sourceTabbedPane = (JTabbedPane) changeEvent.getSource();
int index = sourceTabbedPane.getSelectedIndex();
<BUG>if (index == 1) { //queue tab
queueTab.changeTown();</BUG>
} else if (index == 2) { //farming tab
farmingTab.setTowns(towns);
}

private void addJTabbedPaneListener() {
ChangeListener changeListener = new ChangeListener() {
public void stateChanged(ChangeEvent changeEvent) {
JTabbedPane sourceTabbedPane = (JTabbedPane) changeEvent.getSource();
int index = sourceTabbedPane.getSelectedIndex();
if (index == 1) { //queue tab
Loader.loadTemplateTowns();
queueTab.changeTown();
} else if (index == 2) { //farming tab
farmingTab.setTowns(towns);
