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

skygo 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 3d1f417  [NETBEANS-3957] fixed "opened documents list" show HTML code 
instead of rich text
     new a875668  Merge pull request #2035 from DevCharly/NETBEANS-3957
3d1f417 is described below

commit 3d1f41734b5025d8923f2db0e3141168d1d1974b
Author: Karl Tauber <[email protected]>
AuthorDate: Thu Mar 19 11:48:42 2020 +0100

    [NETBEANS-3957] fixed "opened documents list" show HTML code instead of 
rich text
    
    tested with FlatLaf light/dark, Windows, Nimbus and Metal LaFs
---
 .../src/org/netbeans/swing/popupswitcher/SwitcherTable.java             | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/platform/o.n.swing.tabcontrol/src/org/netbeans/swing/popupswitcher/SwitcherTable.java
 
b/platform/o.n.swing.tabcontrol/src/org/netbeans/swing/popupswitcher/SwitcherTable.java
index af8ae60..d1e2677 100644
--- 
a/platform/o.n.swing.tabcontrol/src/org/netbeans/swing/popupswitcher/SwitcherTable.java
+++ 
b/platform/o.n.swing.tabcontrol/src/org/netbeans/swing/popupswitcher/SwitcherTable.java
@@ -161,7 +161,7 @@ public class SwitcherTable extends JTable {
         if (ren instanceof JLabel) {
             // #199007: Swing HTML renderer does a poor job of truncating long 
labels
             JLabel prototype = (JLabel) ren;
-            lbl = HtmlRenderer.createLabel();
+            lbl = (JLabel) HtmlRenderer.createRenderer();
             if( lbl instanceof HtmlRenderer.Renderer ) {
                 ((HtmlRenderer.Renderer)lbl).setRenderStyle( 
HtmlRenderer.STYLE_TRUNCATE );
             }


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