JComponent () { pane = new JBTabbedPane(SwingConstants.TOP); pane.addTab("Component", createComponentPanel()); pane.addTab("Progress Grid", createProgressGridPanel()); pane.addTab("Validators", createValidatorsPanel()); pane.addTab("Multilines", createMultilinePanel()); pane.addTab("JSliderUI", createJSliderTab()); pane.addTab("ComboBox", createComboBoxTab()); pane.addChangeListener(e -> { if (pane.getSelectedIndex() == 4) { myAlarm.addRequest(progressTimerRequest, 200, ModalityState.any()); } else { myAlarm.cancelRequest(progressTimerRequest); } }); BorderLayoutPanel panel = JBUI.Panels.simplePanel(pane); panel.addToTop(createToolbar(pane)); JPanel southPanel = new JPanel(); southPanel.setLayout(new BoxLayout(southPanel, BoxLayout.X_AXIS)); JCheckBox enabledCB = new JCheckBox("Enable TabPane", true); enabledCB.addActionListener(e -> pane.setEnabled(enabledCB.isSelected())); southPanel.add(enabledCB); southPanel.add(Box.createRigidArea(JBUI.size(UIUtil.DEFAULT_HGAP, 0))); JComboBox<Placement> placementCombo = new ComboBox<>(Placement.values()); placementCombo.setSelectedIndex(0); placementCombo.addActionListener(e -> { Placement p = (Placement)placementCombo.getSelectedItem(); if (p != null) pane.setTabPlacement(p.placement()); }); southPanel.add(placementCombo); southPanel.add(new Box.Filler(JBUI.size(0), JBUI.size(0), JBUI.size(Integer.MAX_VALUE, 0))); BrowserLink externalLink = new BrowserLink("External link", "http://google.com"); southPanel.add(externalLink); panel.addToBottom(southPanel); return panel; }