Add an ArrayList of persons to the Person class.
[Persons_Comparator.git] / src / SizeView.java
CommitLineData
089fcbfc
JB
1import javax.swing.*;
2
3public class SizeView extends JComponent {
6977e614 4 private Size sizeObj;
883508ca 5 private JLabel label;
6977e614 6
b974e749
JB
7 SizeView(Size sizeObj) {
8 setSizeObj(sizeObj);
883508ca
JB
9 this.label = new JLabel();
10 this.label.setText("Size");
11 add(label);
089fcbfc
JB
12 }
13
6977e614
JB
14 public Size getSizeObj() {
15 return sizeObj;
16 }
17
18 public void setSizeObj(Size sizeObj) {
19 this.sizeObj = sizeObj;
20 }
21}