This is an automated email from the ASF dual-hosted git repository.

ebakke pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 328931e5e3d Remove textArea border in MultiLineComboBoxEditor
328931e5e3d is described below

commit 328931e5e3dd40bdf73a3e672d8eb9fa6a6a2186
Author: Laing Raven <[email protected]>
AuthorDate: Thu Sep 26 16:31:56 2024 +0700

    Remove textArea border in MultiLineComboBoxEditor
---
 .../api.search/src/org/netbeans/modules/search/BasicSearchForm.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/platform/api.search/src/org/netbeans/modules/search/BasicSearchForm.java 
b/platform/api.search/src/org/netbeans/modules/search/BasicSearchForm.java
index be5dd5d604a..38c1cecadb9 100644
--- a/platform/api.search/src/org/netbeans/modules/search/BasicSearchForm.java
+++ b/platform/api.search/src/org/netbeans/modules/search/BasicSearchForm.java
@@ -1096,10 +1096,10 @@ final class BasicSearchForm extends JPanel implements 
ChangeListener,
             area.setLineWrap(false);
 
             Border border = 
((JComponent)reference.getEditor().getEditorComponent()).getBorder();
-            if (border == null) {
-                border = reference.getBorder();
+            
+            if (border != null) {
+                area.setBorder(border);
             }
-            area.setBorder(border);
 
             // retain standard focus traversal behavior
             
area.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERS‌​AL_KEYS, null);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to