From 9673243aece5d3fb82f0d4cda8732e1bd862f32c Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Mon, 8 Apr 2024 12:22:21 +0200 Subject: [PATCH] file_and_class_choosers.md: Fix title --- topics/user_interface_components/file_and_class_choosers.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/topics/user_interface_components/file_and_class_choosers.md b/topics/user_interface_components/file_and_class_choosers.md index 086738241..82279deb7 100644 --- a/topics/user_interface_components/file_and_class_choosers.md +++ b/topics/user_interface_components/file_and_class_choosers.md @@ -1,4 +1,4 @@ - + # File and Class Choosers @@ -19,7 +19,7 @@ For more fine-grained control over the allowed selection, you can overload the ` You can also customize the presentation of files by overriding `getIcon()`, `getName()` and `getComment()` methods. Note that the native macOS file chooser does not support most of the customizations, so if you rely on them, you need to use an overload of `chooseFiles()` which displays the standard IntelliJ Platform dialog. -### Via Textfield +### Via Text Field A very common way of using file choosers is to use a text field for entering the path with an ellipsis button (...) for showing the file chooser. To create such a control, use the [`TextFieldWithBrowseButton`](%gh-ic%/platform/platform-api/src/com/intellij/openapi/ui/TextFieldWithBrowseButton.java) component and call the `addBrowseFolderListener()` method on it to set up the file chooser.