private void viewUsers() {
		AdminService admService = new AdminService();
		panelVizualizareUseri = new JPanel();
		//listUsers = new JList<>();
		 listUsers = new JList(new UsersListModel(admService.getUserList()));
		listUsersPanel = new JScrollPane(listUsers);
		listUsersPanel.setBounds(10, 10, 320, 500);
		panelVizualizareUseri.add(listUsersPanel);
		getContentPane().add(panelVizualizareUseri);
		panelVizualizareUseri.setLayout(null);
		panelVizualizareUseri.setBounds(10, 32, 720, 750);

		JLabel lblUsername_1 = new JLabel("Username:");
		lblUsername_1.setBounds(373, 12, 79, 14);
		panelVizualizareUseri.add(lblUsername_1);

		JLabel lblPassword_1 = new JLabel("Password:");
		lblPassword_1.setBounds(373, 51, 79, 14);
		panelVizualizareUseri.add(lblPassword_1);

		JLabel lblPhone_1 = new JLabel("Phone:");
		lblPhone_1.setBounds(373, 90, 46, 14);
		panelVizualizareUseri.add(lblPhone_1);

		final JRadioButton rdbtnViewUsersAdmin = new JRadioButton("Admin");
		buttonGroup_1.add(rdbtnViewUsersAdmin);
		rdbtnViewUsersAdmin.setBounds(373, 131, 109, 23);
		panelVizualizareUseri.add(rdbtnViewUsersAdmin);
		rdbtnViewUsersAdmin.setEnabled(false);

		final JRadioButton rdbtnViewUsersEmployee = new JRadioButton("Employee");
		buttonGroup_1.add(rdbtnViewUsersEmployee);
		rdbtnViewUsersEmployee.setBounds(484, 131, 109, 23);
		panelVizualizareUseri.add(rdbtnViewUsersEmployee);
		rdbtnViewUsersEmployee.setEnabled(false);

		viewUsUsernameTF = new JTextField();
		viewUsUsernameTF.setBounds(462, 9, 131, 20);
		panelVizualizareUseri.add(viewUsUsernameTF);
		viewUsUsernameTF.setColumns(10);
		viewUsUsernameTF.setEditable(false);

		viewUsPasswordTF = new JTextField();
		viewUsPasswordTF.setBounds(462, 48, 131, 20);
		panelVizualizareUseri.add(viewUsPasswordTF);
		viewUsPasswordTF.setColumns(10);
		viewUsPasswordTF.setEditable(false);

		viewUsPhoneTF = new JTextField();
		viewUsPhoneTF.setBounds(462, 87, 131, 20);
		panelVizualizareUseri.add(viewUsPhoneTF);
		viewUsPhoneTF.setColumns(10);
		viewUsPhoneTF.setEditable(false);

		btnViewUsDelete = new JButton("Delete");
		btnViewUsDelete.setBounds(363, 163, 89, 23);
		panelVizualizareUseri.add(btnViewUsDelete);
		btnViewUsDelete.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent e) {
				AdminService admService = new AdminService();
				User us = (User) listUsers.getSelectedValue();
				admService.deleteUserByName(us.getName());
				panelVizualizareUseri.removeAll();
				viewUsers();
			}
		});

		btnViewUsEdit = new JButton("Edit");
		btnViewUsEdit.setBounds(462, 163, 89, 23);
		panelVizualizareUseri.add(btnViewUsEdit);
		btnViewUsEdit.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent e) {
				viewUsPasswordTF.setEditable(true);
				viewUsPhoneTF.setEditable(true);
				rdbtnViewUsersAdmin.setEnabled(true);
				rdbtnViewUsersEmployee.setEnabled(true);
				btnViewUsSave.setVisible(true);
			}
		});

		btnViewUsSave = new JButton("Save");
		btnViewUsSave.setBounds(561, 163, 89, 23);
		panelVizualizareUseri.add(btnViewUsSave);
		btnViewUsSave.setVisible(false);

		btnViewUsSave.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent e) {
				AdminService admService = new AdminService();

				admService.updateUserbyUserName(viewUsUsernameTF.getText(),
						viewUsPasswordTF.getText(), viewUsPhoneTF.getText(),
						rdbtnViewUsersAdmin.isSelected() ? 0 : 1);

				int index = listUsers.getSelectedIndex();
				panelVizualizareUseri.removeAll();
				viewUsers();
				listUsers.setSelectedIndex(index);

			}
		});

		listUsers.addListSelectionListener(new ListSelectionListener() {

			@Override
			public void valueChanged(ListSelectionEvent e) {
				User us = (User) listUsers.getSelectedValue();
				viewUsUsernameTF.setText(us.getName());
				viewUsPasswordTF.setText(us.getPassword());
				viewUsPhoneTF.setText(us.getPhoneNumber());

				if (us.getType() == 0) {
					rdbtnViewUsersAdmin.setSelected(true);
					rdbtnViewUsersEmployee.setSelected(false);
				} else {
					rdbtnViewUsersAdmin.setSelected(false);
					rdbtnViewUsersEmployee.setSelected(true);
				}
			}
		});
	}