X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FWeightView.java;h=9e7ef20d8c0744377cef894240f2e82f6ce0f60e;hb=d119e60d58d8431de3ff29090d7048b0eb7d9f9e;hp=3e6d00f668a0270f8f0f9ee5b42e88410e8116f1;hpb=089fcbfccd75b77daf843b22e128beeee1d1dc07;p=Persons_Comparator.git diff --git a/src/WeightView.java b/src/WeightView.java index 3e6d00f..9e7ef20 100644 --- a/src/WeightView.java +++ b/src/WeightView.java @@ -1,13 +1,14 @@ import javax.swing.*; -public class WeightView extends JComponent { +public class WeightView extends JPanel { 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() {