@Override
	public JComponent getComponent() {
		if (label == null) {
			label = new GDLabel();
			label.setText(getName());
			label.setPreferredSize(new Dimension(50, 50));
			label.setBackground(Palette.GOLD);
			label.setOpaque(true);
			label.setBorder(BorderFactory.createRaisedBevelBorder());
			label.setHorizontalAlignment(SwingConstants.CENTER);
		}
		return label;
	}
A test vertex that renders using a {@link JLabel}.
Ghidra/Framework/Graph/src/test/java/ghidra/graph/graphs/LabelTestVertex.java