public JanelaSalvaContrato(ICtrlManterContratos sc, Set<Imovel> imoveis, Set<Inquilino> inquilinos) throws ParseException{
		this.ctrl = sc;
		setTitle("Salvar Contrato - Imobiliária");
		setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
		setBounds(100, 100, 450, 280);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		setLocationRelativeTo(null);
		contentPane.setLayout(null);
		setResizable(false); //não maximizar, aumentar	
		setIconImage(Toolkit.getDefaultToolkit().getImage("img/icon.png")); //colocando icone
		
		JLabel lblImovel = new JLabel("Imóvel:");
		lblImovel.setBounds(20, 18, 50, 14);
		contentPane.add(lblImovel);
		
		cmbImoveis = new JComboBox<Imovel>();
		cmbImoveis.setBounds(76,15,360,20);
		if(imoveis != null){
			for(Imovel imo : imoveis){
				if(imo != null)
					cmbImoveis.addItem(imo);
			}
		}
		
		contentPane.add(cmbImoveis);
		
		JLabel lblInquilino = new JLabel("Inquilino:");
		lblInquilino.setBounds(20, 52, 50, 14);
		contentPane.add(lblInquilino);
			
		cmbInquilinos = new JComboBox<Inquilino>();
		cmbInquilinos.setBounds(76,49,360,20);
		if(inquilinos != null){
			for(Inquilino inq : inquilinos){
				if(inq != null)
					cmbInquilinos.addItem(inq);
			}
		}
		
		contentPane.add(cmbInquilinos);
				
		JLabel lblDadosC = new JLabel("Dados do Contrato");
		lblDadosC.setBounds(20, 90, 150, 20);
		lblDadosC.setFont(lblDadosC.getFont().deriveFont(15.0f));
		contentPane.add(lblDadosC);
		
		JLabel lblDuracao = new JLabel("Duração:");
		lblDuracao.setBounds(20,120,80,14);
		contentPane.add(lblDuracao);
		
		SpinnerModel modeloDuracao = new SpinnerNumberModel(VALOR_INICIAL, VALOR_MIN, VALOR_MAX_MES, VALOR_PASSO);
		txtDuracao = new JSpinner(modeloDuracao);
		txtDuracao.setBounds(76,120,50,20);
		contentPane.add(txtDuracao);
		
		JLabel lblMeses = new JLabel("meses");
		lblMeses.setBounds(130,122,50,14);
		contentPane.add(lblMeses);
		
		JLabel lblDataInicial = new JLabel("Data Inicial:");
		lblDataInicial.setBounds(240,122,150,14);
		contentPane.add(lblDataInicial);
		
		txtDataInicial = new JFormattedTextField(new MaskFormatter("##/##/####"));
		txtDataInicial.setBounds(310,120,75,20);
		contentPane.add(txtDataInicial);
				
		JLabel lblValAluguel = new JLabel("<html>Valor<br>Aluguel:</html>");
		lblValAluguel.setBounds(20,110,110,100);
		contentPane.add(lblValAluguel);
		
		txtValAluguel = new JTextField();
		txtValAluguel.setBounds(76,160,75,20);
		txtValAluguel.addFocusListener(
				new FocusListener(){
					public void focusGained(FocusEvent e){};
					
					public void focusLost(FocusEvent e){
						if (!e.isTemporary() && isEnabled() ) {
							if(txtValAluguel.getText() !=null){
								Float valor  = Float.parseFloat(txtValAluguel.getText());
								txtValAluguel.setText(format.format(valor));
							}
						}
					}
				});
		
		contentPane.add(txtValAluguel);
			
		JLabel lblPerc = new JLabel("Percentual (%):");
		lblPerc.setBounds(220,160,100,14);
		contentPane.add(lblPerc);
		
		SpinnerModel modelo = new SpinnerNumberModel(VALOR_INICIAL, VALOR_MIN, VALOR_MAX, VALOR_PASSO);
		txtPerc = new JSpinner(modelo);
		txtPerc.setBounds(310,160,50,20);
		contentPane.add(txtPerc);
		
		
		JButton btnSalvar = new JButton("Salvar");
		btnSalvar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				executarSalvar();
			}
		});
		btnSalvar.setBounds(80, 210, 120, 23);
		contentPane.add(btnSalvar);
		
		JButton btnCancelar = new JButton("Cancelar");
		btnCancelar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				executarCancelar();
			}
		});
		btnCancelar.setBounds(240, 210, 120, 23);
		contentPane.add(btnCancelar);
		
		this.setVisible(true);
		
	}