Commit | Line | Data |
---|---|---|
089fcbfc JB |
1 | import javax.swing.*; |
2 | ||
3 | public class WeightView extends JComponent { | |
6977e614 JB |
4 | private Weight weightObj; |
5 | ||
089fcbfc JB |
6 | WeightView() { |
7 | } | |
8 | ||
6977e614 JB |
9 | WeightView(Weight weightObj) { |
10 | setWeightObj(weightObj); | |
11 | } | |
12 | ||
13 | public Weight getWeightObj() { | |
14 | return weightObj; | |
15 | } | |
16 | ||
17 | public void setWeightObj(Weight weightObj) { | |
18 | this.weightObj = weightObj; | |
19 | } | |
20 | } |