Construct the control button panel.

@return JPanel
973316
protected JPanel buildButtonPanel() {
        buttonPanel = new JPanel();

        leftToRight = new JButton(">");
        allLeftToRight = new JButton(">>");
        rightToLeft = new JButton("<");
        allRightToLeft = new JButton("<<");
        Font smallerFont = leftToRight.getFont().deriveFont(9.0F);
        leftToRight.setFont(smallerFont);
        allLeftToRight.setFont(smallerFont);
        rightToLeft.setFont(smallerFont);
        allRightToLeft.setFont(smallerFont);

        Insets margin = new Insets(2, 4, 2, 4);
        leftToRight.setMargin(margin);
        allLeftToRight.setMargin(margin);
        rightToLeft.setMargin(margin);
        allRightToLeft.setMargin(margin);

        GridBagLayout gbl = new GridBagLayout();
        GridBagConstraints gbc = new GridBagConstraints();

        buttonPanel.setLayout(gbl);

        gbc.gridwidth = GridBagConstraints.REMAINDER;
        gbc.fill = GridBagConstraints.HORIZONTAL;
        gbl.setConstraints(leftToRight, gbc);
        gbl.setConstraints(allLeftToRight, gbc);
        gbl.setConstraints(rightToLeft, gbc);
        gbl.setConstraints(allRightToLeft, gbc);

        buttonPanel.add(leftToRight);
        buttonPanel.add(allLeftToRight);
        buttonPanel.add(rightToLeft);
        buttonPanel.add(allRightToLeft);

        leftToRight.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent event) {
                moveLeftToRight();
            }
        });
        allLeftToRight.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent event) {
                moveAllLeftToRight();
            }
        });
        rightToLeft.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent event) {
                moveRightToLeft();
            }
        });
        allRightToLeft.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent event) {
                moveAllRightToLeft();
            }
        });

        buttonPanel.setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
        // buttonPanel.setBackground( Color.lightGray );
        return buttonPanel;
    }
15615
public function getPanel() {
		$lang_code = $this->translator->getActiveLanguageAndPlural()->getLanguage()->getIso639_1();

		ob_start();
		require __DIR__ . '/Templates/panel.phtml';

		return ob_get_clean();
	}
711103
public function getPanel(): string
	{
		ob_start();
		$spec = $this->schemaBuilder->build()->toArray();
		$url = $this->url;
		$expansion = $this->expansion;
		$filter = $this->filter;
		require __DIR__ . '/templates/panel.phtml';

		return (string) ob_get_clean();
	}
187005
protected JPanel getJPanel1() {
		// ZAP: Changed visibility from private to protected
		if (jPanel1 == null) {
			jPanel1 = new JPanel();
			jPanel1.add(getBtnOK(), null);
			jPanel1.add(getBtnCancel(), null);
		}
		return jPanel1;
	}
411336
public function getPanel()
    {
        $params = [
            'class'           => get_class($this->locale),
            'locales'         => $this->locale->getLocales(),
            'localeIdDefault' => $this->locale->getIdDefault(),
            'localeId'        => $this->locale->getId(),
        ];
        $latte = new Engine;
        return $latte->renderToString(__DIR__ . '/PanelTemplate.latte', $params);
    }
862626
private javax.swing.JPanel getPanelCommand() {
		if (panelCommand == null) {
			panelCommand = new javax.swing.JPanel();
			panelCommand.setLayout(new java.awt.GridBagLayout());
			panelCommand.setName(Constant.messages.getString("httpsessions.panel.title"));

			// Add the two components: toolbar and work pane
			GridBagConstraints toolbarGridBag = new GridBagConstraints();
			GridBagConstraints workPaneGridBag = new GridBagConstraints();

			toolbarGridBag.gridx = 0;
			toolbarGridBag.gridy = 0;
			toolbarGridBag.weightx = 1.0d;
			toolbarGridBag.insets = new java.awt.Insets(2, 2, 2, 2);
			toolbarGridBag.anchor = java.awt.GridBagConstraints.NORTHWEST;
			toolbarGridBag.fill = java.awt.GridBagConstraints.HORIZONTAL;

			workPaneGridBag.gridx = 0;
			workPaneGridBag.gridy = 1;
			workPaneGridBag.weightx = 1.0;
			workPaneGridBag.weighty = 1.0;
			workPaneGridBag.insets = new java.awt.Insets(0, 0, 0, 0);
			workPaneGridBag.anchor = java.awt.GridBagConstraints.NORTHWEST;
			workPaneGridBag.fill = java.awt.GridBagConstraints.BOTH;

			panelCommand.add(this.getPanelToolbar(), toolbarGridBag);
			panelCommand.add(getWorkPane(), workPaneGridBag);
		}
		return panelCommand;
	}
1005271
public function controls()
    {
        $this->form();
        $form      = app('antares.form')->of("antares.ui-components: custom");
        $fieldsets = $form->grid->fieldsets();
        $controls  = [];
        foreach ($fieldsets as $fieldset) {
            foreach ($fieldset->controls as $control) {
                array_push($controls, $control->name);
            }
        }
        return $controls;
    }
682054
protected JComponent createFormControl() {
        TableFormBuilder formBuilder = new TableFormBuilder( getBindingFactory() );
        usernameField = formBuilder.add( LoginDetails.PROPERTY_USERNAME )[1];
        formBuilder.row();
        passwordField = formBuilder.addPasswordField( LoginDetails.PROPERTY_PASSWORD )[1];
        return formBuilder.getForm();
    }
1244016
private JComponent createControls()
    {
        JPanel controls = new JPanel(new FlowLayout(FlowLayout.RIGHT));
        JButton gcButton = new JButton("Request GC");
        gcButton.setToolTipText("Perform garbage collection (the JVM may ignore this request).");
        gcButton.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent ev)
            {
                memoryBean.gc();
            }
        });
        controls.add(gcButton);
        return controls;
    }
1236464
protected JComponent buildComponent() {
        helperList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);

        GridBagLayout gbl = new GridBagLayout();
        GridBagConstraints gbc = new GridBagConstraints();

        setLayout(gbl);

        editButton = new JButton("Edit...");
        editButton.setIconTextGap(0);
        editButton.setMargin(new Insets(2, 4, 2, 4));

        editButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent event) {
                togglePanels();
            }
        });

        gbc.fill = GridBagConstraints.NONE;
        gbc.weightx = 0.0;
        gbc.weighty = 0.0;
        gbc.insets = new Insets(0, 0, 0, 3);
        gbc.anchor = GridBagConstraints.NORTHWEST;
        gbl.setConstraints(editButton, gbc);
        add(editButton);

        sourceList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
        sourceList.addKeyListener(new KeyAdapter() {
            public void keyPressed(final KeyEvent e) {
                if (e.getKeyCode() == KeyEvent.VK_ENTER || e.getKeyCode() == KeyEvent.VK_RIGHT) {
                    moveLeftToRight();
                }
            }
        });

        gbc.fill = GridBagConstraints.BOTH;
        gbc.weightx = 1.0;
        gbc.weighty = 1.0;
        sourcePanel.add(BorderLayout.NORTH, sourceLabel);
        JScrollPane sourceScroller = new JScrollPane(sourceList);
        sourcePanel.add(BorderLayout.CENTER, sourceScroller);
        gbl.setConstraints(sourcePanel, gbc);
        add(sourcePanel);

        // JPanel buttonPanel = new ControlButtonPanel();
        JPanel buttonPanel = buildButtonPanel();
        gbc.fill = GridBagConstraints.VERTICAL;
        gbc.weightx = 0;
        gbc.weighty = 1.0;
        gbl.setConstraints(buttonPanel, gbc);
        add(buttonPanel);

        chosenList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
        chosenList.addKeyListener(new KeyAdapter() {
            public void keyPressed(final KeyEvent e) {
                if (e.getKeyCode() == KeyEvent.VK_ENTER || e.getKeyCode() == KeyEvent.VK_LEFT) {
                    moveRightToLeft();
                }
            }
        });
        gbc.fill = GridBagConstraints.BOTH;
        gbc.weightx = 1.0;
        gbc.weighty = 1.0;
        chosenPanel.add(BorderLayout.NORTH, chosenLabel);
        JScrollPane chosenScroller = new JScrollPane(chosenList);
        chosenPanel.add(BorderLayout.CENTER, chosenScroller);
        gbl.setConstraints(chosenPanel, gbc);
        add(chosenPanel);

        editButton.setVisible(showEditButton);
        this.buttonPanel.setVisible(panelsShowing);
        sourcePanel.setVisible(panelsShowing);

        return this;
    }
1267511
protected JPanel getJPanel() {
		if (jPanel == null) {
			java.awt.GridBagConstraints gridBagConstraints6 = new GridBagConstraints();

			java.awt.GridBagConstraints gridBagConstraints5 = new GridBagConstraints();

			java.awt.GridBagConstraints gridBagConstraints4 = new GridBagConstraints();

			java.awt.GridBagConstraints gridBagConstraints3 = new GridBagConstraints();

			java.awt.GridBagConstraints gridBagConstraints2 = new GridBagConstraints();

			java.awt.GridBagConstraints gridBagConstraints1 = new GridBagConstraints();

			javax.swing.JLabel jLabel2 = new JLabel();

			javax.swing.JLabel jLabel1 = new JLabel();

			javax.swing.JLabel jLabel = new JLabel();

			jPanel = new JPanel();
			jPanel.setLayout(new GridBagLayout());
			// ZAP: i18n
			jLabel.setText(Constant.messages.getString("filter.replacedialog.pattern") + ":");
			jLabel1.setText(Constant.messages.getString("filter.replacedialog.replace") + ":");
			jLabel2.setText(Constant.messages.getString("filter.replacedialog.title"));
			gridBagConstraints1.gridx = 0;
			gridBagConstraints1.gridy = 0;
			gridBagConstraints1.insets = new java.awt.Insets(5,5,5,5);
			gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTHWEST;
			gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL;
			gridBagConstraints1.gridwidth = 2;
			gridBagConstraints1.weightx = 1.0D;
			gridBagConstraints2.gridx = 0;
			gridBagConstraints2.gridy = 1;
			gridBagConstraints2.insets = new java.awt.Insets(2,5,2,5);
			gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTHWEST;
			gridBagConstraints3.gridx = 1;
			gridBagConstraints3.gridy = 1;
			gridBagConstraints3.weightx = 1.0;
			gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL;
			gridBagConstraints3.insets = new java.awt.Insets(2,5,2,5);
			gridBagConstraints3.anchor = java.awt.GridBagConstraints.NORTHWEST;
			gridBagConstraints4.gridx = 0;
			gridBagConstraints4.gridy = 2;
			gridBagConstraints4.insets = new java.awt.Insets(2,5,2,5);
			gridBagConstraints4.anchor = java.awt.GridBagConstraints.NORTHWEST;
			gridBagConstraints5.gridx = 1;
			gridBagConstraints5.gridy = 2;
			gridBagConstraints5.weightx = 1.0;
			gridBagConstraints5.fill = java.awt.GridBagConstraints.HORIZONTAL;
			gridBagConstraints5.insets = new java.awt.Insets(2,5,2,5);
			gridBagConstraints5.anchor = java.awt.GridBagConstraints.NORTHWEST;
			gridBagConstraints6.anchor = java.awt.GridBagConstraints.SOUTHEAST;
			gridBagConstraints6.gridwidth = 2;
			gridBagConstraints6.gridx = 0;
			gridBagConstraints6.gridy = 3;
			gridBagConstraints6.insets = new java.awt.Insets(2,2,2,2);
			jPanel.add(jLabel2, gridBagConstraints1);
			jPanel.add(jLabel, gridBagConstraints2);
			jPanel.add(getTxtPattern(), gridBagConstraints3);
			jPanel.add(jLabel1, gridBagConstraints4);
			jPanel.add(getTxtReplaceWith(), gridBagConstraints5);
			jPanel.add(getJPanel1(), gridBagConstraints6);
		}
		return jPanel;
	}
909345
protected Component createCustomEditor() {
		JPanel			panel;

		panel = new JPanel(new BorderLayout());
		panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
		m_EditComponent = (ClassOptionEditComponent) getEditComponent((ClassOption) getValue());
		m_EditComponent.addChangeListener(new ChangeListener() {
			public void stateChanged(ChangeEvent e) {
				m_EditComponent.applyState();
				setValue(m_EditComponent.getEditedOption());
			}
		});
		panel.add(m_EditComponent, BorderLayout.CENTER);

		return panel;
	}
397854
private JPanel getJPanel() {
        if (jPanel == null) {
            jPanel = new JPanel();
            jPanel.setLayout(new CardLayout());
            jPanel.setPreferredSize(new java.awt.Dimension(400,300));
            // ZAP: Disabled the platform specific browser
            //jPanel.add(getEmbeddedBrowser(), getEmbeddedBrowser().getName());
        }
        return jPanel;
    }
1181348
public function getControl()
	{
		$control = parent::getControl();
		$control->addAttributes(array("data-format" => $this->format));
		$container = clone $this->container;
		$container->class[] = 'input-group date';
		$container->add($control);
		$container->add('<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>');

		return $container;
	}
1091479
public function getBackButton()
    {
        $container = $GLOBALS['container'];

        $dataContainer  = $container['dc-general.data-definition-container'];
        $dataDefinition = $dataContainer->getDefinition($this->table);

        $environment = new DefaultEnvironment();
        $environment->setDataDefinition($dataDefinition);
        $environment->setTranslator($container['translator']);
        $environment->setEventDispatcher($container['event-dispatcher']);
        $environment->setInputProvider(new InputProvider());
        $environment->setClipboard(new Clipboard());

        $renderer = new GlobalButtonRenderer($environment);
        return $renderer->render();
    }
437172
private JComponent createControls(boolean islands)
    {
        JPanel controls = new JPanel(new FlowLayout(FlowLayout.RIGHT));

        allDataButton.addItemListener(new ItemListener()
        {
            public void itemStateChanged(ItemEvent ev)
            {
                updateDomainAxisRange();
            }
        });
        String text = "Last " + SHOW_FIXED_GENERATIONS + (islands ? " Epochs" : " Generations");
        JRadioButton recentDataButton = new JRadioButton(text, true);
        ButtonGroup buttonGroup = new ButtonGroup();
        buttonGroup.add(allDataButton);
        buttonGroup.add(recentDataButton);

        controls.add(allDataButton);
        controls.add(recentDataButton);

        final JCheckBox meanCheckBox = new JCheckBox("Show Mean", true);
        meanCheckBox.addItemListener(new ItemListener()
        {
            public void itemStateChanged(ItemEvent itemEvent)
            {
                if (itemEvent.getStateChange() == ItemEvent.SELECTED)
                {
                    dataSet.addSeries(meanSeries);
                }
                else
                {
                    dataSet.removeSeries(meanSeries);
                }
            }
        });
        controls.add(meanCheckBox);

        invertCheckBox.addItemListener(new ItemListener()
        {
            public void itemStateChanged(ItemEvent itemEvent)
            {
                rangeAxis.setInverted(invertCheckBox.isSelected());
            }
        });
        controls.add(invertCheckBox);

        return controls;
    }
1364877
private JPanel getJPanel1() {
		if (jPanel1 == null) {
			jPanel1 = new JPanel();
			jPanel1.add(getBtnCancel(), null);
			jPanel1.add(getBtnReset(), null);
			jPanel1.add(getBtnApply(), null);
		}
		return jPanel1;
	}