- panel.add(view.getNorthPanel(), BorderLayout.NORTH);
- panel.add(view.getSouthPanel(), BorderLayout.SOUTH);
- panel.add(view.getEastPanel(), BorderLayout.EAST);
- panel.add(view.getWestPanel(), BorderLayout.WEST);
- panel.add(view.getPersonPanel(), BorderLayout.CENTER);
+ panel.add(getCurrentPersonView().getNorthPanel(), BorderLayout.NORTH);
+ panel.add(getCurrentPersonView().getSouthPanel(), BorderLayout.SOUTH);
+ panel.add(getCurrentPersonView().getEastPanel(), BorderLayout.EAST);
+ panel.add(getCurrentPersonView().getWestPanel(), BorderLayout.WEST);
+ panel.add(getCurrentPersonView().getPersonPanel(), BorderLayout.CENTER);
+ }
+
+ public static MainWindowsView getInstance() {
+ return ourInstance;
+ }
+
+ public PersonView getCurrentPersonView() {
+ return currentPersonView;