public MeetingRoomGUI() {
		//Get size of screen without taskbar
		screenSize = Toolkit.getDefaultToolkit().getScreenSize();
		screenMax = Toolkit.getDefaultToolkit().getScreenInsets(meetingRoomDialog.getGraphicsConfiguration());
		taskbarSize = screenMax.bottom;
		screenWidth = (int)screenSize.getWidth();
		screenHeight = (int)screenSize.getHeight() - taskbarSize;
		
		//Fill container
		contentPane.setLayout(meetingRoomLayout);
		contentPane.add(backButton);
		contentPane.add(floorLabel);
		contentPane.add(floorField);
		contentPane.add(seatsAmountLabel);
		contentPane.add(seatsAmountField);
		contentPane.add(nameLabel);
		contentPane.add(nameField);
		contentPane.add(meetingRoomButton);
		
		//Prepare frame components
		floorField.setColumns(20);
		seatsAmountField.setColumns(20);
		nameField.setColumns(20);
		
		//Placement of components on screen
		meetingRoomLayout.putConstraint(SpringLayout.WEST, backButton, (int)(screenWidth * 0.01), SpringLayout.WEST, contentPane);
		meetingRoomLayout.putConstraint(SpringLayout.NORTH, backButton, (int)(screenHeight * 0.01), SpringLayout.NORTH, contentPane);
		
		meetingRoomLayout.putConstraint(SpringLayout.WEST, floorLabel, (int)(screenWidth * 0.4166), SpringLayout.WEST, contentPane);
		meetingRoomLayout.putConstraint(SpringLayout.NORTH, floorLabel, (int)(screenHeight * 0.43), SpringLayout.NORTH, contentPane);
		
		meetingRoomLayout.putConstraint(SpringLayout.WEST, floorField, (int)(screenWidth * 0.48), SpringLayout.WEST, contentPane);
		meetingRoomLayout.putConstraint(SpringLayout.NORTH, floorField, (int)(screenHeight * 0.43), SpringLayout.NORTH, contentPane);
		
		meetingRoomLayout.putConstraint(SpringLayout.WEST, seatsAmountLabel, (int)(screenWidth * 0.4166), SpringLayout.WEST, contentPane);
		meetingRoomLayout.putConstraint(SpringLayout.NORTH, seatsAmountLabel, (int)(screenHeight * 0.49), SpringLayout.NORTH, contentPane);
		
		meetingRoomLayout.putConstraint(SpringLayout.WEST, seatsAmountField, (int)(screenWidth * 0.48), SpringLayout.WEST, contentPane);
		meetingRoomLayout.putConstraint(SpringLayout.NORTH, seatsAmountField, (int)(screenHeight * 0.49), SpringLayout.NORTH, contentPane);
		
		meetingRoomLayout.putConstraint(SpringLayout.WEST, nameLabel, (int)(screenWidth * 0.4166), SpringLayout.WEST, contentPane);
		meetingRoomLayout.putConstraint(SpringLayout.NORTH, nameLabel, (int)(screenHeight * 0.55), SpringLayout.NORTH, contentPane);
		
		meetingRoomLayout.putConstraint(SpringLayout.WEST, nameField, (int)(screenWidth * 0.48), SpringLayout.WEST, contentPane);
		meetingRoomLayout.putConstraint(SpringLayout.NORTH, nameField, (int)(screenHeight * 0.55), SpringLayout.NORTH, contentPane);
			
		meetingRoomLayout.putConstraint(SpringLayout.WEST, meetingRoomButton, (int)(screenWidth * 0.50), SpringLayout.WEST, contentPane);
		meetingRoomLayout.putConstraint(SpringLayout.NORTH, meetingRoomButton, (int)(screenHeight * 0.70) , SpringLayout.NORTH, contentPane);
		
		backButton.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent event) {
				if(forEdit == true)
					MainGUI.switchToMeetingRoomList();
				else
					MainGUI.switchToMenu();
			}
			
		});
		
		meetingRoomButton.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent arg0) {
				if(forEdit == false) {
					if(floorField.getText().equals("") || seatsAmountField.getText().equals("") || nameField.getText().equals(""))
						meetingRoomButton.setEnabled(false);
					else {
						meetingRoom = new MeetingRoom(Integer.valueOf(floorField.getText()), Integer.valueOf(seatsAmountField.getText()), nameField.getText());
						MeetingRoomDAO.saveMeetingRoom(meetingRoom);
						System.out.println(seatsAmountField.getText());
					}
				}
				
				else if(forEdit == true) {
					if(floorField.getText().equals("") || seatsAmountField.getText().equals("") || nameField.getText().equals(""))
						meetingRoomButton.setEnabled(false);
					else {
						meetingRoomButton.setEnabled(true);
						roomID = meetingRoom.getRoomID();
						meetingRoom = new MeetingRoom(roomID, Integer.valueOf(floorField.getText()), Integer.valueOf(seatsAmountField.getText()), nameField.getText());
						MeetingRoomDAO.editMeetingRoom(meetingRoom);
						JOptionPane.showMessageDialog(contentPane, "MeetingRoom saved", "Success", JOptionPane.INFORMATION_MESSAGE);
					}
				}
			}
			
		});		
	}