public void actionPerformed(ActionEvent e) {
						try {
							if (room == null) {
								Logger.log("Creating new room");
								
								Room room = new Room(txtLabel.getText().trim(), iconBox.getSelectedItem().toString(), colorBox.getSelectedItem().toString(), new ArrayList<RoomObject>());
								
								Rooms.createRoom(room);
							} else {
								room.setLabel(txtLabel.getText().trim());
								room.setColor(colorBox.getColor());
								room.setIcon(IconUtils.getIcon("icon_" + iconBox.getSelectedItem().toString()));
								room.setStringIcon(iconBox.getSelectedItem().toString());
								FrameMain.instance.reloadTree();
							}
							
							dispose();
							setVisible(false);
						} catch (Exception e1) {
							e1.printStackTrace();
						}
					}