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

mbien 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 930ca9143a Remove little black line from new-project wizard.
     new 73df1e9040 Merge pull request #6349 from mbien/remove-evil-caret
930ca9143a is described below

commit 930ca9143a65bf3d04150c5e4002833f2de43192
Author: Michael Bien <[email protected]>
AuthorDate: Wed Aug 16 09:44:25 2023 +0200

    Remove little black line from new-project wizard.
    
    It turned out that the little black line was the caret of a focused,
    0-width JTextPane. It was mostly only visible during "loading" panels
    when no other component requested focus.
---
 platform/openide.dialogs/src/org/openide/WizardDescriptor.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/platform/openide.dialogs/src/org/openide/WizardDescriptor.java 
b/platform/openide.dialogs/src/org/openide/WizardDescriptor.java
index 6b68f3e45f..8c0f417c72 100644
--- a/platform/openide.dialogs/src/org/openide/WizardDescriptor.java
+++ b/platform/openide.dialogs/src/org/openide/WizardDescriptor.java
@@ -3180,6 +3180,7 @@ public class WizardDescriptor extends DialogDescriptor {
         public FixedHeightPane () {
             super ();
             setEditable(false);
+            setFocusable(false);
             putClientProperty( JEditorPane.HONOR_DISPLAY_PROPERTIES, 
Boolean.TRUE);
             HTMLEditorKit htmlkit = new HTMLEditorKit();
             // override the Swing default CSS to make the HTMLEditorKit use the


---------------------------------------------------------------------
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