X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FWeightView.java;h=1576b62e2e836d77e3433b3c49e32e092ab79bc2;hb=b974e749af3a4b2df3737b2d361233c704dcc4d8;hp=e6b69c54e62fa8fb62be14bd74786fd28d491cb7;hpb=6977e6142a133673703769e092e6283dda73cf4f;p=Persons_Comparator.git diff --git a/src/WeightView.java b/src/WeightView.java index e6b69c5..1576b62 100644 --- a/src/WeightView.java +++ b/src/WeightView.java @@ -1,8 +1,14 @@ -public class WeightView { +import javax.swing.*; + +public class WeightView extends JComponent { private Weight weightObj; + private JLabel label; WeightView(Weight weightObj) { setWeightObj(weightObj); + this.label = new JLabel(); + this.label.setText("Weight"); + add(label); } public Weight getWeightObj() {