void () { if (myTabs == null) { myPanel = new JPanel(); myPanel.setLayout(new BorderLayout()); myTabbedPane = new TabbedPaneWrapper(this); myTabbedPane.addChangeListener(__ -> { if (myListener != null) { String title = myTabbedPane.getSelectedTitle(); if (title != null) { myListener.tabChanged(this, title); } } }); myTabs = new ArrayList<>(); myPanel.add(myTabbedPane.getComponent()); initTabs(getSettings()); } assert !myTabs.isEmpty(); }