Commit 939113dc authored by 9731065's avatar 9731065

All done

parent 540e806b
Pipeline #652 canceled with stages
import javax.swing.*;
import java.awt.*;
import java.util.Vector;
public class ParticipantsArea extends JPanel {
private Vector<String> vector ;
public ParticipantsArea(){
super();
vector = new Vector<>();
vector.add("ALIREZA1");
vector.add("LOOKI2");
vector.add("MOHAMMAD3");
JList<String> jList = new JList<>(vector);
jList.setBackground(Color.GRAY);
setLayout(new BorderLayout());
this.add(jList , BorderLayout.CENTER);
JLabel jLabel = new JLabel("Online users : ");
jLabel.setBackground(Color.red);
this.add(jLabel , BorderLayout.NORTH);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment