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 3428 - String doesn`t show right with special symbol.
Summary: String doesn`t show right with special symbol.
Status: CLOSED WONTFIX
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Jan Jancura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-08-17 20:50 UTC by pzajac
Modified: 2003-06-30 17:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 1999-08-17 20:50:52 UTC
For example this String :
"/ta"
is was  showed as
.a
Comment 1 Antonin Nebuzelsky 2000-08-08 09:32:59 UTC
I reproduced the bug in the situation when a string variable in the debugged
application contains special characters like tabulators or new-lines. These
special characters are displayed by debugger as squares.

(I was not able to reproduce the situation when the string variable would
contain "/ta" or "\ta" as stated in the bug description. These strings were
displayed correctly by both JPDA and jdk1.1 debuggers.)

Tabulators and new-lines are correctly retrived from the debugged application.
Then they are displayed as squares on three places:

1) in the name of the watch node
--------------------------------
This is caused by javax.swing.tree.DefaultTreeCellRenderer.paint(Graphics)
method called by the method
org.openide.explorer.view.NodeRenderer.paint(Graphics).

2) in the property "value" of the watch node
--------------------------------------------
This is caused by java.awt.Graphics.drawString(...) method called by the method
org.openide.explorer.propertysheet.SheetButton.paint(Graphics).

3) in the tooltip in the editor window
--------------------------------------
This is caused by JLabel displaying the tooltip. This JLabel is filled with the
string in org.netbeans.editor.ext.ToolTipSupport.setToolTipText(String).

All these three problems are caused by JDK classes that are not able to show the
special characters. Forte gives them in all tree cases correct string and they
show tabulators and new-lines as squares.

One possible work-around would be to replace tabulators by \t and new-lines by
\n. However, it can't be done in the debugger because the multiline editor of
the property sheet value would then show the string as one line as well. And I
don't want to do it on the mentioned three places, because they are very
frequently used and the change could affect some other parts of the IDE.
Comment 2 pzajac 2000-08-08 16:20:59 UTC
It isn't problem replace tabulators and new lines character of watches values by
symbol '\n' and '\t' only for it. It is better. Property editor then has one
line for these strings or it  can be writen special property editor for these
strings too.
Comment 3 Quality Engineering 2003-06-30 17:25:47 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.