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