Properly add all view JComponents to the JPanel in the main JFrame.
[Persons_Comparator.git] / src / WeightView.java
CommitLineData
089fcbfc
JB
1import javax.swing.*;
2
3public 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}