Properly add all view JComponents to the JPanel in the main JFrame.
[Persons_Comparator.git] / src / WeightView.java
index e6b69c54e62fa8fb62be14bd74786fd28d491cb7..3e6d00f668a0270f8f0f9ee5b42e88410e8116f1 100644 (file)
@@ -1,6 +1,11 @@
-public class WeightView {
+import javax.swing.*;
+
+public class WeightView extends JComponent {
     private Weight weightObj;
 
+    WeightView() {
+    }
+
     WeightView(Weight weightObj) {
         setWeightObj(weightObj);
     }