9e7ef20d8c0744377cef894240f2e82f6ce0f60e
[Persons_Comparator.git] / src / WeightView.java
1 import javax.swing.*;
2
3 public class WeightView extends JPanel {
4 private Weight weightObj;
5 private JLabel label;
6
7 WeightView(Weight weightObj) {
8 setWeightObj(weightObj);
9 this.label = new JLabel();
10 this.label.setText("Weight");
11 add(label);
12 }
13
14 public Weight getWeightObj() {
15 return weightObj;
16 }
17
18 public void setWeightObj(Weight weightObj) {
19 this.weightObj = weightObj;
20 }
21 }