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 209024 - Underscore character not displayed correctly
Summary: Underscore character not displayed correctly
Status: RESOLVED INCOMPLETE
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.1.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-01 00:33 UTC by bd
Modified: 2012-06-14 10:03 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NetBeans screenshot (11.93 KB, image/png)
2012-06-14 10:01 UTC, pbw
Details
Inetellij Idea screenshot (12.50 KB, image/png)
2012-06-14 10:02 UTC, pbw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bd 2012-03-01 00:33:52 UTC
Typing an underscore creates a space.  This appears to occur in all contexts. E.g. 
- Creating filenames (while creating a new project)
- Entering text in the editor.

This did NOT occur in any 7.0, or in any other previous versions of Netbeans.  

FYI I am using Debian 6.04 (squeeze), Gnome 2.30.2.
Comment 1 Jiri Prox 2012-03-05 12:34:55 UTC
Can you please try changing font in editor or/all LookAndFeel of the whole IDE?
It looks like some problem with displaying the underscore character.

Thanks
Comment 2 bd 2012-03-05 15:06:40 UTC
The problem may to be limited the Monospaced font. The underscore does appear with several other fonts.  I think that Monospaced is the default font for Netbeans - I don't think I've ever changed fonts before.

FYI this is definitely a 7.1.1 specific problem.  I still have Netbeans 7.0 on my system and it uses the Monospaced font with no problem.

regards
Comment 3 Miloslav Metelka 2012-06-14 08:14:02 UTC
> - Creating filenames (while creating a new project)
If you see the problem even in regular text fields then it's a JDK issue. Do you use Oracle JDK or any other e.g. OpenJDK? Please attach your messages.log http://wiki.netbeans.org/FaqLogMessagesFile to the issue. Thanks.
Comment 4 Antonin Nebuzelsky 2012-06-14 08:51:24 UTC
In addition to the information requested in comment #3, can you also attach screenshots showing the problem?
Comment 5 pbw 2012-06-14 10:01:30 UTC
Created attachment 120821 [details]
NetBeans screenshot

The NetBeans version
Comment 6 pbw 2012-06-14 10:02:20 UTC
Created attachment 120822 [details]
Inetellij Idea screenshot

The same file in Intellij Idea
Comment 7 pbw 2012-06-14 10:03:48 UTC
The problem does not occur in IntelliJ Idea. See attached screenshots. I am using the Mac-issue JDK, Haven't switched over to the Oracle JDK 7 yet, as it is still in beta.
 Will attach my NB log.