repositories
/
Persons_Comparator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add an ArrayList of persons to the Person class.
[Persons_Comparator.git]
/
src
/
WeightView.java
diff --git
a/src/WeightView.java
b/src/WeightView.java
index 239c437556dededfbbaf3839a0dba0b5c528d89b..1576b62e2e836d77e3433b3c49e32e092ab79bc2 100644
(file)
--- a/
src/WeightView.java
+++ b/
src/WeightView.java
@@
-4,16
+4,13
@@
public class WeightView extends JComponent {
private Weight weightObj;
private JLabel label;
private Weight weightObj;
private JLabel label;
- WeightView() {
+ WeightView(Weight weightObj) {
+ setWeightObj(weightObj);
this.label = new JLabel();
this.label.setText("Weight");
add(label);
}
this.label = new JLabel();
this.label.setText("Weight");
add(label);
}
- WeightView(Weight weightObj) {
- setWeightObj(weightObj);
- }
-
public Weight getWeightObj() {
return weightObj;
}
public Weight getWeightObj() {
return weightObj;
}