private void buildMainPanel() {
		JLabel nameLabel = new GDLabel("Server Name:", SwingConstants.RIGHT);
		nameField = new JTextField(20);
		nameField.setName("Server Name");
		nameField.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				nameField.transferFocus();
			}
		});
		nameDocListener = new DocumentListener() {
			@Override
			public void changedUpdate(DocumentEvent e) {
				notifyChange();
			}

			@Override
			public void insertUpdate(DocumentEvent e) {
				notifyChange();
			}

			@Override
			public void removeUpdate(DocumentEvent e) {
				notifyChange();
			}
		};
		nameField.getDocument().addDocumentListener(nameDocListener);

		JLabel portLabel = new GDLabel("Port Number:", SwingConstants.RIGHT);
		portNumberField = new JTextField(20);
		portNumberField.setName("Port Number");

		portNumberField.setText(Integer.toString(GhidraServerHandle.DEFAULT_PORT));
		portNumberField.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				portNumberField.transferFocus();
			}
		});

		portDocListener = new DocumentListener() {
			@Override
			public void insertUpdate(DocumentEvent e) {
				notifyChange();
			}

			@Override
			public void removeUpdate(DocumentEvent e) {
				notifyChange();
			}

			@Override
			public void changedUpdate(DocumentEvent e) {
				notifyChange();
			}
		};
		portNumberField.getDocument().addDocumentListener(portDocListener);

		portNumberField.setToolTipText("Enter port number");
		JPanel panel = new JPanel(new PairLayout(5, 10));
		panel.add(nameLabel);
		panel.add(nameField);
		panel.add(portLabel);
		panel.add(portNumberField);

		add(panel, BorderLayout.CENTER);
	}
Set the field values using the given server info.
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/ServerInfoComponent.java