JComponent () { final var pane = new JBTabbedPane(); pane.insertTab(NULLABLE, null, myNullablePanel.getComponent(), "", 0); pane.insertTab(NOT_NULL, null, myNotNullPanel.getComponent(), "", 1); return pane; }