X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FWeightView.java;h=1576b62e2e836d77e3433b3c49e32e092ab79bc2;hb=b974e749af3a4b2df3737b2d361233c704dcc4d8;hp=3e6d00f668a0270f8f0f9ee5b42e88410e8116f1;hpb=089fcbfccd75b77daf843b22e128beeee1d1dc07;p=Persons_Comparator.git diff --git a/src/WeightView.java b/src/WeightView.java index 3e6d00f..1576b62 100644 --- a/src/WeightView.java +++ b/src/WeightView.java @@ -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() {