3 public class WeightView
extends JPanel
{
4 private Weight weightObj
;
7 WeightView(Weight weightObj
) {
8 setWeightObj(weightObj
);
9 this.label
= new JLabel();
10 this.label
.setText("Weight");
14 public Weight
getWeightObj() {
18 public void setWeightObj(Weight weightObj
) {
19 this.weightObj
= weightObj
;