Show "invisible chars" in JTextPane

Hi all.
I want to show "invisible" chars (like spaces, line feeds, tabulators) in a JTextPane.
Someone have already solve this, maybe in a more easy way than the one i found (see below)?
I try solve this setting some specific (static) ImageIcon as "style" of the specific character: tricky but works, except for the highlight that dont paint (and none want and editor that dont show the selection over spaces...); and trying to solve this issue is driving me to hell due to repaint problems (see my post "JTextPane repaint problem": dukes also available there ;)

Thanks,
To solve the pb, I say UTF-8 in the header of my XML File,
and it's ok.
"ggshow" <[email protected]> a écrit dans le message
de news:
envsi3$e9$[email protected]..
> make sure your xml file encoding saved as unicode

Similar Messages

  • Can I "show invisibles" in MUSE text?

    I'm working with a text column in MUSE, and every time I click in a paragraph the spacing above and below paragraphs goes haywire. I'm using paragraph styles with space above for subheads, and body text without for paragraphs, but it doesn't matter. MUSE seems to randomly add or delete space above and below as I click in the text. For instance, MUSE will close up the space above a subhead even though I have the paragraph style set to allow a line of white space. I have to move the curor up, add an extra return, and then it adds twice as much space, and then I delete the extra return, and it goes back to the way it should look. But the next time I click in that text box, it will do the same thing again.
    Is this behavior typical?
    I have not found a way to "show Invisibles" to see the codes for paragraph returns (¶) or spaces, etc.
    This is pretty basic stuff . . . I wasn't surprised when this was missing from the early Beta version, but it's hard to believe it's still not available.

    Is there an answer to this? It would be helpful to me as well.

  • How to show chinese char form db in my jsp portlet?

    How to show chinese char form db in my jsp portlet?
    I had tried to set contentType in renderResponse, but itn't work ..

    Bent,
    You can access the database from your Java portlet, just like from any other Java/JSP environment. Yes, you can use JDBC, as well as BC4J.
    The Discussion Forum portlet was built using BC4J, take a look at it's source to see how it was done.
    Also, check out Re: BC4J Java portlet anyone?, it contains a lot of useful information too.
    Peter

  • How to show invisibles (non-printing characters) in Keynote?

    Great thanks to anyone who can help find what in Keynote '09 is clicked or keyed to show invisibles (non-printing characters).

    I have this same problem.  It used to be under View in Keynote '08 but can't find it anywhere in '09 and it won't even show up in the help.  AAAAhhhhh, come on Apple...where'd you put it?

  • Show invisible characters?

    There is no option to show invisibles as far as I can see. Why is this?
    I am re-designing a website. The client has no text to supply so I'm having to copy and paste the text from his old website. To be able to show invisibles would be good.

    we call them non printing characters
    this cant be displayed in Keynote, Keynote is a video based presentation application and does not have many typographic tools.
    The sister application to Keynote is Pages which can show non printing characters so you should use that;
    View > show > invisibles

  • How to display long text in SAP Query ALV layout? It only show 129 char now

    I have a SAP Query which show a remark field(Max length more than 500 char), but it only show max length 129 char now. In fact, the lenght of remark field text is more than 300, and i had debug the source code, the field text value do is correct, its length do is 376.
    Do anybody can help me solve the issue, let the query ALV layout can show the long text field value?
    thanks very much in addvance.

    Hi,
    ALV can show only a restrict value length around 128 characters, many experts said that we can not extend. many suggestions is split text into some column.
    Regards,

  • Showing invisible parts of the document when print is cancelled

    The recommended way to hide content of a form designed in LifeCycle Designer 7.0 is to make the non-printable elements invisible in the prePrint event and to show them again in the postPrint event.
    When the print is initiated, the respective objects become invisible and they are shown again after the print is executed with OK. However, when the print is cancelled by pressing Cancel, no postPrint event occurs and the objects remain invisible.
    We have not found a workaround for this problem which appears to be a major functional issue which makes the advertised way of hiding content for printing not viable. That makes the product unusable for our purposes.
    We have also tried to create a layered PDF with InDesign and adding control elements to this document. The plan was to mark some of the layers as non-printable in Acrobat. However, after we added the control elements, saved the file and opened it in Acrobat, all the layers were lost.
    Is there a way to workaround this problem?

    Thank you for responding. Below is some info.
    Please see the clipping on the "d" in Pastel Bond and White Bond and the rounded part of the "R" in 2 &3 Part NCR. We have had this happen on occasion with other files as well. Thanks for the help.
    save as > photoshop PDF
    First dialogue box:
    Save: layers (checked)
    color: embed color profile: U.S. web coated (SWOP) ...
    Second dialogue box: high quality print
    options: none checked
    viewing PDF in preview on mac

  • How do I show invisibles in Pages for iPad?

    I'm using Pages on an iPad 2.  I'd like to show "invsibles" or formatting marks in my documents but don't know how to do it.  Can anyone please help?
    Thanks
    Alison

    Hi, I had the same issue and found the answer elsewhere. So in case you haven't yet;
    Invisibles only become visible in Pages for iOS when you select the text around them (I know! I thought the same thing when I found out!).
    There is no way (currently) to turn them on as you can in Pages for OSX.
    Cheers, Adrian.

  • Oracle Client 11g 32bit on Windows 7 64Bit, does not show Norwgian Chars?

    our company develop a program that communicate with Oracle Database though Oracle Client.
    to use the program the user needs to install oracle client in as a runtime.
    now some of our clients has some problem with the Norwegian chars! it shows as a question mark (?)
    all the Norwegian chars (ø,æ and å) in the program that comes from the database replaces by (?)
    I did many research but yet no luck! and ideas (I would love to welcome few so I can test them all)
    cheers
    Edited by: SJari on Jun 15, 2011 2:32 AM

    Which tool are you using to query the data?
    What is the NLS setting at the client side?
    I would recommend a read through the Globalization support guide.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/toc.htm

  • Problem with Invisible Caret in JTextPane

    Hi there,
    Using latest JDK, I'm running into the following problem - a JTextPane, placed in a JScrollPane, made editable by doubleclicking on it, doesn't show the caret after having been made editable.
    private class EditableTextPane extends JTextPane{
              private String preEditString;          
              protected EditableTextPane(){
                   super();
                   setFont( TicketPanel.ticketFont );
                   setMargin( new Insets( 24, 5, 5, 5 ) );
                   setEditable( false );
                   addMouseListener( new MouseAdapter(){
                        public void mouseClicked( MouseEvent e ){
                             if( e.getClickCount() == 2 ){
                                  if( !isEditable() ){
                                       preEditString = getText();
                                       setEditable( true );
    //added these two in an attempt to solve the problem
                                       EditableTextPane.this.requestFocus();
                                       EditableTextPane.this.setCaretPosition( getText().length() );
                                  else{
                                       performEdit();
                                       setEditable( false );
              public void setText( String s ){
                   super.setText( s );
                   if( isEditable() )
                        setEditable( false );
                   preEditString = null;
              private void performEdit(){
                   if( preEditString == null )
                        return;
              public void setEditable( boolean b ){
                   super.setEditable( b );
                   setForeground( b ? Color.blue : Color.black );
         }Any ideas?
    Thanks!
    Alex

    Thanks for the post camickr, didn't think of that, but unfortunately that didn't do it. Here's the SSCE:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TestClass {
         public static void main( String args[] ){
              JFrame f = new JFrame();
              EditableTextPane e = new EditableTextPane();
              e.setText( "This is some test text" );
              JScrollPane p = new JScrollPane( e, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS );
              f.getContentPane().add( p );
              f.setSize( 400, 400 );
              f.setVisible( true );
         private static class EditableTextPane extends JTextPane{
              private static final long serialVersionUID = 1L;
              private String preEditString;          
              protected EditableTextPane(){
                   super();
                   setMargin( new Insets( 24, 5, 5, 5 ) );
                   setEditable( false );
                   addMouseListener( new MouseAdapter(){
                        public void mouseClicked( MouseEvent e ){
                             if( e.getClickCount() == 2 ){
                                  if( !isEditable() ){
                                       preEditString = getText();
                                       setEditable( true );                              
                                       EditableTextPane.this.requestFocus();
                                       SwingUtilities.invokeLater( new Runnable(){
                                            public void run(){
                                                 EditableTextPane.this.setCaretPosition( getText().length() );
                                  else{
                                       performEdit();
                                       setEditable( false );
              public void setText( String s ){
                   super.setText( s );
                   if( isEditable() )
                        setEditable( false );
                   preEditString = null;
              private void performEdit(){
                   if( preEditString == null )
                        return;
              public void setEditable( boolean b ){
                   super.setEditable( b );
                   setForeground( b ? Color.blue : Color.black );
    }Thanks again.
    Alex

  • Coverflow showing "invisible" album cover rather than "music symbol" cover

    I recently noticed that my iPhone is showing a completely invisible album cover instead of the normal music symbol cover in coverflow & regular iPod modes. This is strange as I usually see the music symbol placeholder album cover when browsing the iPod software. With the completely invisble cover, it's hard to notice the album when browsing in coverflow. Is this a known bug?

    One thing to try is to find the songs that belong to the album in itunes.
    Right click or control click on the each of the songs and go to the artwork tab.
    Delete any artwork associated with the song.
    Now add the artwork you want associated with the album.
    Connect the iphone to the computer.
    Use manually manage to remove the album from the iphone.
    Then sync the album back to the iphone.
    Hope this helps.

  • Table control-change the output of a column. My column shows numbers (char)

    Hello Friends,
    I have in the table control a table. This table show varoius columns , but one column shows numbers. My boss detected that there are showed the numbres but without decimals . for example 10 is showed instead of 10.35. The format of the column is char . How can i change the format to make it appear with decimals? I tried with split in the internal processes. but the problem are the external ones. Because this column is automatically converted to char . what can i do ?
    Thanks!!

    i did not asigned a type char.
    i just referenzed from a field of a matrix table., the machine recognizes this field as char and shows the filed with no decimals at all
    How can i make the decimals to appear?

  • How to show invisible items in Time Machine Backups?

    Dear All,
    How can I show invisble items on //Time Machine Backups/Backups.backupdb ?
    I've backed //Lion/Users/User/Library , but when i checked the backed folder, i could not find it.
    Any help!!!
    Regards,
    Abdelaal,

    Open Terminal (Applications > Utilities > Terminal.app) and paste this command
    defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder
    To turn invisible files off again, use
    defaults write com.apple.finder AppleShowAllFiles FALSE; killall Finder

  • Terminal not showing invisible files/system files

    My terminal application has stopped showing system files files
    eg:
    Macbook:~ julianmerrow-smith$ ls -l
    total 32
    drwx------+ 21 julianmerrow-smith staff 714 Oct 20 11:46 Desktop
    drwx------+ 5 julianmerrow-smith staff 170 Oct 20 11:46 Documents
    drwx------+ 61 julianmerrow-smith staff 2074 Oct 20 08:06 Downloads
    drwx------+ 39 julianmerrow-smith staff 1326 Oct 19 20:45 Library
    drwx------+ 3 julianmerrow-smith staff 102 Sep 27 11:37 Movies
    drwx------+ 3 julianmerrow-smith staff 102 Sep 27 11:37 Music
    drwx------+ 5 julianmerrow-smith staff 170 Sep 27 21:09 Pictures
    drwxr-xr-x+ 5 julianmerrow-smith staff 170 Sep 27 11:37 Public
    drwxr-xr-x+ 5 julianmerrow-smith staff 170 Sep 27 11:37 Sites
    -rw-r--r-- 1 julianmerrow-smith staff 800 Oct 7 12:15 artforsale.pwm
    -rw-r--r-- 1 julianmerrow-smith staff 800 Oct 7 12:15 artforsale.pwm_bak1
    drwxr-xr-x@ 33 julianmerrow-smith staff 1122 Sep 27 14:35 be2bqu21.default
    -rw-r--r-- 1 julianmerrow-smith staff 744 Sep 28 09:02 mt-config.cgi
    drwxr-xr-x 3 julianmerrow-smith staff 102 Oct 20 10:30 server back-ups
    -rw-r--r--@ 1 julianmerrow-smith staff 2668 Oct 20 09:07 untitled.html
    I created a new admin, same result. sudo bash has given me back use of the terminal but how do I get it back to normal, any ideas?

    There are two kinds of "invisible" files and folders - those items whose names begin with a period, and those items which carry a "hidden" flag. Both are normally invisible to Finder, though Finder can be enabled to see them both. Terminal's ls command requires the -a option in order to see items with names that begin with a period, but does not need the -a option to see items that carry the "hidden" flag.
    Are you looking for something specific? You listed the contents of your home folder, which doesn't normally contain any executable system files, and doesn't normally contain any items which are invisible because of the "hidden" flag. The home folder does contain a few items with names beginning with a period, which you would be able to see if you use *ls -la*. Of these, the .Trash folder is probably the only item that is of practical interest.
    There are invisible system files and folders at the root level of your startup volume. If you want to see all of these, you can use
    ls -la /
    Even without the -a option, the command
    ls -l /
    will show those hidden system items that are of most practical interest (/Volumes, /bin, /etc, /private, /sbin, /tmp, /usr, /var )

  • How can I make xterm show Unicode chars other than Latin and lines?

    I'm trying to get my terminal (xterm) to show more Unicode characters. The UTF-8 and Unicode FAQ for Unix/Linux suggests that xterm can display quite a wide set, but I'm not seeing that.
    I have the locale resource set to true as suggested in the wiki (and I have used xrdb to load the new resources, but it was actually set already before I logged in).
    I've also made sure to use a font that has those characters. Here you can see a screenshot of vim and gvim showing the same file with the same font.
    http://i.imgur.com/aG8NjUrl.png
    -- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
    Last edited by shawnjgoff (2013-08-13 18:32:05)

    It's most likely your selection of fonts doesn't include the glyphs.  For xft (TrueType) I use DejaVu Sans Mono to balance glyph coverage with legibility and I use WenQuanYi Bitmap Song for the double wide characters.
    xterm*faceName: DejaVu Sans Mono:style=Book:antialias=false
    xterm*faceNameDoublesize: WenQuanYi Bitmap Song
    xterm*faceSize: 8
    ! Fix for DJVSM low-hanging underscore, adds line spacing:
    xterm*scaleHeight: 1.01
    The default XLFD font, aliased to "fixed", has very good glyph coverage.  You can probably switch to it with xterm's Ctrl-Right_Click menu: uncheck 'TrueType Fonts' and make sure Default is checked.  Or start a new xterm instance from the command line:
    $ xterm -xrm "*renderFont: false" &
    The default fonts for xterm are all XLFD.  You can view the system defaults in '/usr/share/X11/app-defaults/XTerm'.  The defaults may be overwritten by your user's X resources configuration.
    Edit: fixed missing space in code.
    Last edited by thisoldman (2013-08-14 11:16:09)

Maybe you are looking for

  • Timeline Bug while dragging, trimming, moving a clip

    Hello, I have a huge problem with Adobe Premiere Elements 11 on a Mac, OSX Lion - only in the expert mode: If I want to drag a clip in my timeline or reposition it or trimm it, the normal background of the timeline is replace with a copy of the previ

  • Accessing libraries from java web start

    hi guys, I am new to forums and sorry if this question has been posed before. I am trying to access jogl.dll and jogl_cg.dll through java web start. These libraries are getting downloaded on the client machine as a jar file. I am using the following

  • Select List and Popup LoV for one column

    Hello, is there a built-in functionality to show a select list and a popup lov for one column similar to "Condition Type" in the condition region when editing a page.

  • Purchase Order Driver Program Not loading SMARTFORM

    Hi, I have developed Z smartform by copying from standard form and tried to call from standard program only but here I am not able to call my Z smartform and I am able to call only Z SAPSCRIPT from this standard program. I have done all the necessary

  • Ise distributed deployment upgrade

    My customer has an ISE deployment with 4 nodes: Admin/Monitor Primary and Secondary plus 2 Policy Server. The Admin nodes are VMs, the Policy nodes are 3315 appliances. The system was installed almost three years ago with the version 1.1.0 ... It app