This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 110229 - Tab titles displayed as raw HTML
Summary: Tab titles displayed as raw HTML
Status: CLOSED DUPLICATE of bug 113388
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: t_h
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2007-07-19 00:39 UTC by Jesse Glick
Modified: 2011-02-23 17:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (7.29 KB, image/png)
2007-07-19 18:15 UTC, Jesse Glick
Details
Same IDE session, simply closed "real" core(netbeans) tab... note that OW window title now corrected (7.11 KB, image/png)
2007-07-19 18:17 UTC, Jesse Glick
Details
Example of originally reported problem, finally (25.77 KB, image/png)
2007-07-20 02:56 UTC, Jesse Glick
Details
Log from 070806 + private logging patches, JDK 7 b17; ran one build (looked OK), did CVS diff, ran second build and saw both problems (62.42 KB, text/plain)
2007-08-06 22:46 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2007-07-19 00:39:52 UTC
070718, but I think broken also in 070716? When an Ant process is running, normally the OW tab title is boldfaced. In
these builds, the tab instead displays the raw HTML, e.g. "<html><b>...</b>".
Comment 1 Jesse Glick 2007-07-19 01:52:11 UTC
Forgot to mention: running with

  -J-Dnb.tabnames.html=true
Comment 2 Milos Kleint 2007-07-19 04:56:02 UTC
I don't think a P2 can be justified if it happens with a system property setup only.
Comment 3 Jesse Glick 2007-07-19 05:32:49 UTC
True. Though I think we should consider making this mode the default since it's much nicer than little asterisks. Tim
did the original impl, if I recall correctly, so he may have some tip on what is wrong?
Comment 4 _ tboudreau 2007-07-19 07:35:35 UTC
Well, somebody's been doing something to the tab control - in today's build, all of the navigation controls are missing from the right side of the editor tab 
control.
Comment 5 _ tboudreau 2007-07-19 07:39:35 UTC
The only thing -J-Dnb.tabnames.html=true should affect is how editor tab display names are computed.  There's no code that I know of that would cause that 
line switch to affect the output window's title.
Comment 6 Milos Kleint 2007-07-19 07:58:24 UTC
I assumed jesse means the output title that is normally bold when there is just one tab in OW and a build is running. 

jesse, are you using gtk l&f by any chance? (found this one in fisheye that could be possibly related:
http://deadlock.netbeans.org/fisheye/changelog/netbeans?cs=MAIN:dsimonek:20070716145642)
Comment 7 Jesse Glick 2007-07-19 17:17:05 UTC
I have multiple tabs in the OW. Normally the subtabs are boldfaced when a build is running. In recent builds they show
as HTML instead.

I am not using GTK. I am using Ocean L&F, on JDK 7 b15.

If you have trouble reproducing, just let me know and I will spend some time trying to identify the trigger condition.
Comment 8 Milos Kleint 2007-07-19 17:22:12 UTC
ok. then it's not related to nb.tabnames.html=true.

can you try with jdk16? If I recall correctly all we do is rely on swing to handle html correctly in tab titles..
Comment 9 Jesse Glick 2007-07-19 18:10:36 UTC
Of course I cannot reproduce in another userdir, even with the same build, JDK, LAF, and -D switch...
Comment 10 Jesse Glick 2007-07-19 18:14:32 UTC
...nor even in the same userdir after a restart.

I have also noticed something else funny in the past few days: the tab names in the OW suddenly change to the wrong
value. In the screenshot I will attach, I first ran a CVS update operation on some file. This produced a tab named
something like "CVS on cfg-unit.xml" or whatever. Then I built the core module. This produced a second tab "core
(netbeans)", as expected. But just when the build finished, the title of the other tab switched to "core (netbeans)" as
well!
Comment 11 Jesse Glick 2007-07-19 18:15:46 UTC
Created attachment 45398 [details]
Screenshot
Comment 12 Jesse Glick 2007-07-19 18:17:17 UTC
Created attachment 45399 [details]
Same IDE session, simply closed "real" core(netbeans) tab... note that OW window title now corrected
Comment 13 Jesse Glick 2007-07-19 18:20:02 UTC
Originally reported bug still happens sometimes after the restart, but not most times. I cannot figure out how to
reproduce. The tab title switch I can reproduce, just by alternately building core and updating that file.
Comment 14 Jesse Glick 2007-07-19 18:24:53 UTC
Regarding title swap, I am currently in a mode where the OW shows (I will use asterisks to represent correctly rendered
boldface):

Output
-----------------------------------------
core (netbeans) x | *core (netbeans)* x |
-----------------------------------------

(The first is actual Ant output, the second is really CVS output.)

If I build core, I first see

Output
----------------------------------------------------
*core (netbeans)* x | :pserver:....../repository x |
----------------------------------------------------

and then back to the first appearance when the build completes.
Comment 15 Jesse Glick 2007-07-20 02:56:21 UTC
Created attachment 45413 [details]
Example of originally reported problem, finally
Comment 16 Jesse Glick 2007-08-06 22:46:51 UTC
Created attachment 46235 [details]
Log from 070806 + private logging patches, JDK 7 b17; ran one build (looked OK), did CVS diff, ran second build and saw both problems
Comment 17 Jesse Glick 2007-08-06 22:51:05 UTC
Note also the tripling of '&nbsp;' in the HTML title shown in this log, which I cannot explain.
Comment 18 Jesse Glick 2007-08-06 22:55:58 UTC
Tried running similar actions in my regular userdir under JDK 6 for a while and have yet to see the bug. So I suspect
this is some kind of problem in JDK 7's JTabbedPane which needs to be filed.
Comment 19 _ tboudreau 2007-08-07 01:06:51 UTC
I know JDK 6 switched to using JLabels (which you can replace) in tab titles;   maybe that has something to do with it?
Comment 20 Jesse Glick 2007-08-07 01:27:00 UTC
But I think it is specific to JDK 7, not 6.
Comment 21 _ tboudreau 2007-08-07 05:52:30 UTC
Just figuring since the code's been messed with recently in JDK 6, it's probably been messed with some more in JDK 7.  Richard Bair might be the person to 
talk to.
Comment 22 Antonin Nebuzelsky 2008-02-07 15:50:55 UTC
Reassigning to new module owner Tomas Holy.
Comment 23 t_h 2008-02-28 11:04:58 UTC
Is this issue still relevant? Was it JDK bug?
Comment 24 Jesse Glick 2008-02-28 16:19:56 UTC
I don't know, I have not been using JDK 7 for a while now (due to an unrelated serious AWT bug).
Comment 25 t_h 2008-02-29 14:46:09 UTC
JDK 7 issue.

*** This issue has been marked as a duplicate of 113388 ***
Comment 26 Marian Mirilovic 2011-02-23 17:40:19 UTC
v/c