3 public class WeightView
extends JComponent
{
4 private Weight weightObj
;
8 this.label
= new JLabel();
9 this.label
.setText("Weight");
13 WeightView(Weight weightObj
) {
14 setWeightObj(weightObj
);
17 public Weight
getWeightObj() {
21 public void setWeightObj(Weight weightObj
) {
22 this.weightObj
= weightObj
;