Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
lab 10
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9731065
lab 10
Commits
939113dc
Commit
939113dc
authored
May 21, 2019
by
9731065
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
All done
parent
540e806b
Pipeline
#652
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
ParticipantsArea.java
src/ParticipantsArea.java
+22
-0
No files found.
src/ParticipantsArea.java
0 → 100644
View file @
939113dc
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
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment