repositories
/
Persons_Comparator.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Change the EyeView for a JComboList, store the color string inside the Eye class...
[Persons_Comparator.git]
/
src
/
SizeView.java
1
import
javax
.
swing
.*;
2
3
public class
SizeView
extends
JComponent
{
4
private
Size sizeObj
;
5
private
JLabel label
;
6
7
SizeView
(
Size sizeObj
) {
8
setSizeObj
(
sizeObj
);
9
this
.
label
=
new
JLabel
();
10
this
.
label
.
setText
(
"Size"
);
11
add
(
label
);
12
}
13
14
public
Size
getSizeObj
() {
15
return
sizeObj
;
16
}
17
18
public void
setSizeObj
(
Size sizeObj
) {
19
this
.
sizeObj
=
sizeObj
;
20
}
21
}