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;
}