3 public class WeightView
extends JComponent
{
4 private Weight weightObj
;
9 WeightView(Weight weightObj
) {
10 setWeightObj(weightObj
);
13 public Weight
getWeightObj() {
17 public void setWeightObj(Weight weightObj
) {
18 this.weightObj
= weightObj
;