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 (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);
|
||||||
|
|
Loading…
Reference in a new issue