Put each view inside its own panel and add each panel to the main panel.
[Persons_Comparator.git] / src / FirstnameView.java
index 8634dc71ac715b2b868398aae1331d2ccf1d48e2..b7b85680290a51ca5c6c28e21bf1c92db3cdd3fe 100644 (file)
@@ -1,6 +1,6 @@
 import javax.swing.*;
 
-public class FirstnameView extends JComponent {
+public class FirstnameView extends JPanel {
     private Firstname firstnameObj;
     private JTextField textField;
     private JLabel label;