Add an ArrayList of persons to the Person class.
[Persons_Comparator.git] / src / WeightView.java
index 3e6d00f668a0270f8f0f9ee5b42e88410e8116f1..1576b62e2e836d77e3433b3c49e32e092ab79bc2 100644 (file)
@@ -2,12 +2,13 @@ import javax.swing.*;
 
 public class WeightView extends JComponent {
     private Weight weightObj;
-
-    WeightView() {
-    }
+    private JLabel label;
 
     WeightView(Weight weightObj) {
         setWeightObj(weightObj);
+        this.label = new JLabel();
+        this.label.setText("Weight");
+        add(label);
     }
 
     public Weight getWeightObj() {