code: private void init() {
          this.setLayout(new BorderLayout());
  
          // MAIN PANEL
          JPanel mainPanel = new JPanel();
          Border margin = new EmptyBorder(10, 10, 5, 10);
  
          mainPanel.setBorder(margin);
          mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
  
          mainPanel.add(makeTitlePanel());
      }
docs: Main visualizer setup.