statut complet
This commit is contained in:
parent
b647430c29
commit
e594eb89c7
1 changed files with 2 additions and 2 deletions
|
@ -197,7 +197,7 @@ public class ListUI extends JFrame implements Runnable{
|
|||
});
|
||||
// combobox (suite)
|
||||
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.setBounds(335, 194, 89, 22);
|
||||
contentPane.add(comboBox);
|
||||
|
@ -245,7 +245,7 @@ public class ListUI extends JFrame implements Runnable{
|
|||
private void connect() {
|
||||
try{
|
||||
if (list.getSelectedValue() != null) {
|
||||
if(!list.getSelectedValue().statut.equals("offline")) {
|
||||
if(!list.getSelectedValue().statut.equals("invisible")) {
|
||||
String nom = list.getSelectedValue().nom;
|
||||
gestionnaireClavardage gc = gestionnaireClavardage.instance();
|
||||
gc.createSession(nom);
|
||||
|
|
Loading…
Reference in a new issue