Just concluding this thread to tell everyone that I went with the
AttentionHighlight suggestion below. The html results for tab title were not
consistently reliable.
Stephen Cumminger
From: stephen cumminger
Sent: Friday, July 20, 2018 2:50 PM
To: users@netbeans.apache.org
Subject: RE:
Good suggestions. Thanks. Turns out that after another Clean & Build, html
color markups are working again in the default platform tabs.
Regards,
Stephen Cumminger
From: Geertjan Wielenga
Sent: Friday, July 20, 2018 9:47 AM
To: users@netbeans.apache.org
Subject: Re: Customizing the tab
I'd advise looking closely at the functionality provided out of the box by
the APIs rather than rolling your own complex solutions, e.g., here's a few:
http://bits.netbeans.org/dev/javadoc/org-openide-windows/org/openide/windows/TopComponent.html#setAttentionHighlight-boolean-
On Thu, 19 Jul 2018 at 14:16, stephen cumminger
wrote:
> String toreturn= ""+prefix+" COLOR=RED>"+super.getDisplayName()+"";
Have you tried ?
>From recollection it uses this -
http://bits.netbeans.org/dev/javadoc/org-openide-awt/org/openide/awt/HtmlRenderer.html
Best wishes,
Neil
After doing a little more digging, I found a Blog entry that describes how to
implement a custom TabbedComponentFactory.
https://blogs.oracle.com/geertjan/plug-a-custom-basictabbedpaneui-into-the-netbeans-platform
However, the links to the sources are broken