private void buildMainPanel() {

		JPanel panel = new JPanel(new PairLayout(5, 5, 120));
		inputValues = new String[inputLabels.length];
		textFields = new MyTextField[inputLabels.length];
		for (int i = 0; i < inputValues.length; i++) {
			textFields[i] = new MyTextField(initialValues[i]);
			inputValues[i] = initialValues[i];
			textFields[i].addKeyListener(keyListener);
			textFields[i].setName("input.dialog.text.field." + i);
			panel.add(new GLabel(inputLabels[i], SwingConstants.RIGHT));
			panel.add(textFields[i]);
		}
		panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
		panel.getAccessibleContext().setAccessibleName("Input");
		this.addWorkPanel(panel);
	}
completes the construction of the gui for this dialog
Ghidra/Framework/Docking/src/main/java/docking/widgets/dialogs/InputDialog.java