Commit | Line | Data |
---|---|---|
1 | import javax.swing.*; | |
2 | ||
3 | public class OriginView extends JComponent { | |
4 | private Origin originObj; | |
5 | private JLabel label; | |
6 | ||
7 | OriginView(Origin originObj) { | |
8 | setOriginObj(originObj); | |
9 | this.label = new JLabel(); | |
10 | this.label.setText("Origin"); | |
11 | add(label); | |
12 | } | |
13 | ||
14 | public Origin getOriginObj() { | |
15 | return originObj; | |
16 | } | |
17 | ||
18 | public void setOriginObj(Origin originObj) { | |
19 | this.originObj = originObj; | |
20 | } | |
21 | } |