Put each view inside its own panel and add each panel to the main panel.
[Persons_Comparator.git] / src / WeightView.java
index 1576b62e2e836d77e3433b3c49e32e092ab79bc2..9e7ef20d8c0744377cef894240f2e82f6ce0f60e 100644 (file)
@@ -1,6 +1,6 @@
 import javax.swing.*;
 
-public class WeightView extends JComponent {
+public class WeightView extends JPanel {
     private Weight weightObj;
     private JLabel label;