private Component buildControlPanel() {
		JPanel panel = new JPanel(new FlowLayout());

		JButton pauseButton = new JButton("Pause");
		JButton resumeButton = new JButton("Resume");
		JButton stepButton = new JButton("Step");
		JButton clearButton = new JButton("Clear All");

		pauseButton.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				pause();
			}
		});
		resumeButton.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				resume();
			}
		});
		stepButton.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				step();
			}
		});
		clearButton.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				clear();
			}
		});

		panel.add(pauseButton);
		panel.add(stepButton);
		panel.add(resumeButton);
		panel.add(clearButton);
		return panel;
	}
Turns on or off the display of the task results panel.
@param b if true, displays the task results panel.
Ghidra/Framework/Project/src/main/java/ghidra/framework/task/GTaskManagerPanel.java