X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FWeightView.java;h=1576b62e2e836d77e3433b3c49e32e092ab79bc2;hb=b974e749af3a4b2df3737b2d361233c704dcc4d8;hp=239c437556dededfbbaf3839a0dba0b5c528d89b;hpb=416b4c77ff435499154345f4992f27c12ac0933c;p=Persons_Comparator.git diff --git a/src/WeightView.java b/src/WeightView.java index 239c437..1576b62 100644 --- a/src/WeightView.java +++ b/src/WeightView.java @@ -4,16 +4,13 @@ public class WeightView extends JComponent { private Weight weightObj; private JLabel label; - WeightView() { + WeightView(Weight weightObj) { + setWeightObj(weightObj); this.label = new JLabel(); this.label.setText("Weight"); add(label); } - WeightView(Weight weightObj) { - setWeightObj(weightObj); - } - public Weight getWeightObj() { return weightObj; }