statut complet

This commit is contained in:
basti 2021-01-12 14:45:13 +01:00
parent b647430c29
commit e594eb89c7

View file

@ -197,7 +197,7 @@ public class ListUI extends JFrame implements Runnable{
}); });
// combobox (suite) // combobox (suite)
comboBox.setMaximumRowCount(3); comboBox.setMaximumRowCount(3);
comboBox.setModel(new DefaultComboBoxModel(new String[] {"online", "occupied", "offline"})); comboBox.setModel(new DefaultComboBoxModel(new String[] {"online", "occupied", "invisible"}));
comboBox.setSelectedIndex(0); comboBox.setSelectedIndex(0);
comboBox.setBounds(335, 194, 89, 22); comboBox.setBounds(335, 194, 89, 22);
contentPane.add(comboBox); contentPane.add(comboBox);
@ -245,7 +245,7 @@ public class ListUI extends JFrame implements Runnable{
private void connect() { private void connect() {
try{ try{
if (list.getSelectedValue() != null) { if (list.getSelectedValue() != null) {
if(!list.getSelectedValue().statut.equals("offline")) { if(!list.getSelectedValue().statut.equals("invisible")) {
String nom = list.getSelectedValue().nom; String nom = list.getSelectedValue().nom;
gestionnaireClavardage gc = gestionnaireClavardage.instance(); gestionnaireClavardage gc = gestionnaireClavardage.instance();
gc.createSession(nom); gc.createSession(nom);