private int getColumns() {
		ComboBoxEditor currentEditor = getEditor();
		if (currentEditor != null) {
			Object object = currentEditor.getEditorComponent();
			if (object instanceof JTextField textField) {
				return textField.getColumns();
			}
		}
		return -1;
	}
Sets the number of column's in the editor's component (JTextField).
@param columns the number of columns to show
@see JTextField#setColumns(int)
Ghidra/Framework/Docking/src/main/java/docking/widgets/combobox/GhidraComboBox.java