repositories
/
Persons_Comparator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Properly add all view JComponents to the JPanel in the main JFrame.
[Persons_Comparator.git]
/
src
/
WeightView.java
diff --git
a/src/WeightView.java
b/src/WeightView.java
index e6b69c54e62fa8fb62be14bd74786fd28d491cb7..3e6d00f668a0270f8f0f9ee5b42e88410e8116f1 100644
(file)
--- a/
src/WeightView.java
+++ b/
src/WeightView.java
@@
-1,6
+1,11
@@
-public class WeightView {
+import javax.swing.*;
+
+public class WeightView extends JComponent {
private Weight weightObj;
+ WeightView() {
+ }
+
WeightView(Weight weightObj) {
setWeightObj(weightObj);
}