On the JTextPane need to don't print special character .........

Hello All,
I work on JTextPane , and want to don't print special character when the user press on this the JTextPane ,like "a" character,
the application will test is this character is "a" or "A" , it won't print the character , else print it , So how can i do that code.??
Thanks.

There are other ways, but the best is probably to use a documentFilter.
The Java Tutorials: [Implementing a Document Filter|http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html#filter]
luck, db

Similar Messages

  • Problem about printing special character in bex query analyzer

    Hi,
    in bex query analyzer i have created one restricted key figure , in which i have substracted two date with the help of replacement path.
    So i got result.
    But i am facing one problem. when in both date, if one date is null or # then it is giving some big value like -734567.
    But i want some special character like X instead of this big values.
    So how can i do this?
    With the help of if and else it can be done.
    But how can we print special character in report.
    Please help me
    Thank you in advance

    hi,
    You cannot show X in a formula result. You can highlight the row using exception.
    Still if you want to show X in the result then you need to create a formula variable on a char which returns X value all the times.
    Then you can use the three formula variable to write a formula so that it shows the difference:
    date1 -- formula variable
    date2 -- formula variable
    charx -- formula variable.
    the formula will be
    Count(date1)Count(date2)(date1 - date2) + charx *(count (delta(date1) + delta(date2))).
    this would return the X value if any of the dates are empty otherwise their difference.
    regards.
    Arvind.

  • PO Not Printing special character

    Hello Gurus,
    We have printing issue with POs. Users in other countries need to be able to print the PO to display special characters like:
    Ä/ä,Ö/ö, Ü/ü
    However, when we preview the PO from ME9F, it looks just fine with the special characters in them. But when printed or trial-printed, those special characters are replaced by space, #, ", etc.
    I will appreciate your solutions.

    Hi,
    Plz check the following link.
    Re: Few keyboard special characters are coming as # in printout
    Thanks,
    Sree.

  • How to eliminate the column data which just has a special character

    Hello All,
    I working on a query which will query the table and returns only the meaningful data. In the table, I have the data like this
    ID                SearchWord
    1                   20A-1
    2                   Mainline
    3                   %
    4                   -
    5                   Little Rock, AR
    When I select the data from this table, In the result set, I don't want to see '%'  record, '-' record. If a SearchWord contains the special character along with other alpha numeric characters its fine. But if a record contains only special characters,
    I wanted to eliminate them. How can I achieve this?
    Thanks so much for all your help.

    SELECT *
    FROM Table
    WHERE SearchWord NOT LIKE '%[^0-9A-Za-z]%'
    AND SearchWord LIKE @Yourparameter
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Printing special character from report

    I was reading thru the other discussion on the same subject as I hv a similar problem. I am trying to print the character ' in a report. Note that it is not coming from the database. It is a hard typed character in the text of the report. It works fine on NT but doesn't work when we run the report under Unix. Currently our report server is on Unix so.. It just prints a '?'. Any suggestion will be highly appreciated.
    Thanks,

    I was wondering if there is a way to bypass
    Unix fonts and send the character to the
    printer using PL-SQL code in this
    particular case. Any idea?Ideas, maybe, answers, no. I haven't had
    that particular problem, but if I did, I
    would:
    1) First step: make sure you can generate
    a report that has the correct character
    code value and that your Unix OS doesn't
    force it to '?' because of US7ASCII.
    2) Second step: make sure the printer is
    given something it can understand; the
    character has to be in it's font palette
    too. Either it has to know what to do
    with B1 hex, or you have to put a header
    in your output file telling it how to
    interpret that.
    Good luck, sorry I couldn't help more.
    -- Allan Plumb

  • Unable to print special character in SAP script

    Hi,
      There is an address which needs to be hardcoded in a SAP Script form.
    It looks like:
    Česká republika s.r.o
    Karla Engliu0161e 3219/4
    Česká republika
    IČO:  25635972
    The letters which has got a tilde and sign above them are appearing as a hash '#' in print. I have tried uploading it as an image and as standard text. But still not working. Can someone help please?
    Thanks in advance,
    Anita

    Hello,
    Is your SAP Unicode? If no, then this can get very messy. If yes, I'd start with checking if the font used by the SAPScript supports that character.
    Regards,
    Michael

  • EP6.0 SP2: Howto print special character in hbj:textview

    Hello,
    i tried to print the character ä (special german) in the textView.
        <hbj:textView
              id="Text_ZIP"
              text="vorläufiger Stand 23.12.2004"
           design="EMPHASIZED"
       />
    But the iView didn't run. I get an error.
    Has anybody of you an idea?
    Thank you
    Message was edited by: Stephan Borchert

    Hi Stephan,
    within Eclipse, please save all documents in UTF-8 (Window -- Preferences -- Workbench -- Editors -- Text File Encoding -- Other --UTF-8). If you have saved them in Cp1252, you will get problems to switch to UTF-8, so copy the content of such a file, delete it, switch to UTF-8 and insert again.
    Hope it helps
    Detlev

  • YouTube app don't accept special character like '&' in field password

    Like the subject... I link my YouTube account with Google account and when i login i get incorrect login. I change my Google password deleting character '&' and now login work. Please fix this bug.
    Thank's

    It'a know bug? Or doesn't work only for me???

  • Multiple users logged into one server, each users printer has a different name, application needs ONE name to print to.

    Multiple users logged into one server, each users printer has a different name, application needs ONE name to print to. 
    I'm NOT in any way a Terminal Services expert and I need help trying to get an application program working in a multi-user environment.
    The issue is that the printer changes for every user that is logged in. The application needs to print NOT to the default printer, but to a "special" printer which is selected in the application... let's call it a label printer to simplify the explanation.
    You have your default regular printer, easy for the application to find that one, and then you have a special printer that labels get printed onto. The application needs to know what printer is the label printer. So we allow the user to select that in the
    application and the selection is stored in a config file in 
    C:\ProgramData\mfgr\prog\setting files
    I don't have access to the application so I can't change how this works.  
    In the "regular" world, selecting the label printer driver to use should be per machine, NOT per user. When a new user logs into a machine, the physical printer doesn't go "poof" and a new printer suddenly appear. Same printer for all
    users.
    Yet in terminal services, the physical machine is "merged" with the virtual machine on the server. And there can be many users logged in at the same time. So each users real machine (and real printer) is injected into the "fake" terminal
    services machine. The name of the printers is made unique for each user. So the printers DO go "poof" and change names depending on the user logged into terminal services.
    So user "A" logs in and sets up the application to print to "LabelPrinterForUserA" (or whatever the name of the printer happens to be), that setting is stored in the ProgramData subfolder, and all is well. Later, user "B" logs
    in, and when they print, the application tries to print to "LabelPrinterForUserA" which doesn't exist for user B or is only accessible by user A. If user B re-configures, that breaks it for user A. 
    SOLUTION 1: The way that /should/ work (in my mind) is that you define one "generic" printer in Terminal Services... call it "Virtual Label printer" and when the user wants to print to it, the print job gets re-directed back to whatever
    physical printer is actually connected to their local workstation. There is a map of virtual printer to actual printer depending on the current user. The application is told once to print to "Virtual Label Printer" for all users.
    SOLUTION 2: Or... there should be some way to make the ProgramData sub folders separate per user. E.g. when user "A" tries to access:
    C:\ProgramData\mfgr\prog\setting files
    they actually get 
    C:\UserData\UserA\AppData\mfgr\prog\setting files
    and user "B" gets
    C:\UserData\UserB\AppData\mfgr\prog\setting files
    So the question I have is: Does either of those solutions exist hidden somewhere in the setup of terminal server? Or is there another way around this issue that I don't know?

    I don't really have a "for sure" answer to this, but because people here can't seem to deal with a question that hasn't been answered I'll provide the best answer I did receive from ServerFault.com user Nathan:
    I can feel your pain with using old software on terminal servers ...the solution I've come up with definitely won't scale as it requires some manual configuration, but I've gotten this method to work with our label printers (which require to be
    printed to an LPT port...yep, that old).
    Share your USB-connected printers to the network on each machine. Then, have the user log in on aunique session for each of them
    (a TS account cannot be shared among computers for this to work) and install a network printer pointing to the USB one they shared. Try to use a DNS name to account for possible DHCP movements.
    After, it should work. Each user can do this since display names can be identical as long as the ports are different (which they are).
    This was clarified by the following series of comments:
    I think you are on to something here, and I originally advised the admin to do this. The problem he ran into is that it setup the printer names in the TS as "printer on usersworkstation"
    and he could not rename it except to change the "printer" to whatever. E.g. the "on userworkstation" remained. I believe there is another way of installing the printer which avoids this, but I can't find it. Ages ago, one used to do NET
    USE LPT2 \\computer\printer password /USER:domain\user /PERSISTENT:YES and then tell the driver to print to LPT2 –  James
    Newton Mar
    17 at 16:21   
    @JamesNewton That's actually the exact method we used. The way around the "network printer" part is to install it as local printer and map it to a TCP/IP port that way. –  Nathan
    C Mar
    17 at 16:28
    You mean in the case where the printers are TCP/IP connected and not local USB / LPT to the users workstation? That makes sense. Wonder if this will work for USB connected printers... –  James
    NewtonMar
    17 at 16:35   
    @JamesNewton You'd share the local printer on the client's PC then on the server connect via TCP/IP to it. You'd need static addresses or use DNS names if DHCP, though. –  Nathan
    C Mar
    17 at 16:51
    Ah. Yes. I see. Looks like the LPT thing should work even with a USB connected printer:superuser.com/questions/182655/… –  James
    Newton Mar
    17 at 17:09   

  • Adobe LeanPrint prints special characters

    LeanPrint prints special character strings some times for the whole document and some other times for some phrases (may be URLs).

    Hello,
    Could you please let us know if you were trying to print a non english document? Is it possible for you to share the document or relevant content with us for analysis?
    I am assuming this was observed on Microsoft Word plug-in. Let me know if otherwise.
    Thanks,
    Adobe LeanPrint Team

  • I deleted Bonjour, since I don't need it for remote printing.  Now I get the message " Airport Base Station has stopped working: and also a message saying APAgent.exe can't be found.  What to do??? Thanks.

    I deleted Bonjour since I don't need it for remote printing.  Now on start-up I get the message: "Airport Base Station Agent has stopped working" and also message: "can't find APAgent.exe.:  Do I need AP Agent??  What to do??  Thanks. 

    The APAgent monitors your AirPort base station and informs you if there are things like firmware updates available. This utility relies on Bonjour, but is not required for base station operation. However, Bonjour makes it easier for your PC to "find" the base station via the AirPort Utility and I would recommend that you keep it installed. If you don't want the APAgent, you can just use the Apple Updater utility (that was also installed when the AirPort Utility was installed) to remove it.

  • HT3669 Hi I have a Konica Minolta PagePro 1300W printer. This works with my Windows-based Toshiba laptop but not with my i-Mac. Can someone please advise me how I get the printer to work with my i-Mac? I have installed it but documents don't print. Thanks

    Hi I have a Konica Minolta PagePro 1300W printer. This works with my Windows-based Toshiba laptop but not with my i-Mac. I have the latest (Mountain Lion 10.8.2) OS-X software.
    I have installed the printer using 'System Preferences' on my i-Mac and it appears on the list of available printers but documents that I create just don't print.
    Can someone please advise me how I get the Konica Minolta PagePro 1300W printer to work with my i-Mac?
    Thanks, John Lee

    Looking at the Konica web site for the PagePro 1300W, I saw the following note.
    Please note: This printer is designed to be used in computer operating systems running MS Windows only. Operating systems such as UNIX, Macintosh, or Linux are not supported nor do we have workaround drivers available. Older MS Windows versions, such as Windows 3.1/95/98[pre-SE] and NT 3.51/4.0, are not supported.
    So KM are not going to help you. But the LinuxFoundation does provide a workaround that should allow you to print. Have a look at this web page. You will need to install all three packages as per the instructions from that page.

  • Concerning Epson Printer 4880: after changing the Ink from Photo Black to Matte Black I'm not getting the Epson Software in Photoshop and Lightroom. I can not select the paper medium, I don't see my profiles. What is wrong?

    Concerning Epson Printer 4880: after changing the Ink from Photo Black to Matte Black I'm not getting the Epson Software in Photoshop and Lightroom. I can not select the paper medium, I don't see my profiles. What is wrong?

    That is priceless!!!  Thanks!  I sure needed a good laugh after spending/wasting hours & days trying to either get my c6280 to give up on its Ink System Failure fixation, or find a decent replacement.  Unfortunately I need the Smart Web Printing feature that I guess only HP has, or I'd try a different brand. And now even HP has very few models with that available.
     My error msg is a little different from those previously stated, but close:  0xc18a0201.  Even tho there were frustrations with my c6280, I did like several of its unique features which are hard to find now under $100.  I hate how HP (& I suppose other brands also) are CONSTANTLY changing models & then of course ink cartridges.
    Oh heavens, I've had the c6280 a whopping 2 1/2 years!   I'm sure they want us poor slobs to have to buy a new one every year & a day!  To say nothing of the exorbitant prices for ink.  And now if this one is really dead in the water, I have SIX unused #02 ink cartridges which I cannot return---I got them in a combo pack, & for some reason have wound up with THREE lite pink & THREE lite blue cartridges, while having to buy extras of the other colors, that ran out before the others!!!   Yeah, & what's with that not being able to print in BLACK if a color runs out????
    Anyway I really loved your essay!   It's a classic!  And says it all!  I hate that we have to be 'slaves' to the electronic 'wonders'!!!

  • How can I change the password in the iBook donated to our nonprofit.  No password was given with the iBook?  We need to put in printer and other software.  Help, we can use the laptop without changing the password.

      How can we change the password in the iBook donated to our nonprofit?  No password was given with the iBook and every time we try to install items, the password window pops up.  We need to put in printer and other software.  Help! We can use the laptop without changing the password.

    If you did not get an OS X install-restore DVD with the computer you may need
    to buy one from somewhere, and you may be lucky to get a retail OS X 10.5.x
    version. The original grey-label install set of software and OS X it shipped with
    likely would be an older system than Leopard 10.5. Last versions of G4 Mac, &
    G5, shipped with a Tiger 10.4 system; so did early Intel-based Mac. Grey discs
    which accompanied other computer build models generally do not interchange.
    The last OS X version a PowerPC architecture can use, if supported, is 10.5.8.
    A PPC processor at 867MHz & faster should be able to run OS X 10.5 Leopard.
    {With the correct disc installer, you can use it to change a password and other
    things including re-install, and perform disk utility functions, etc.}
    There is a chance you may be able to get a white-label Replacement 10.4 DVD
    or Replacement 10.5 DVD from AppleCare or the online Apple Store (800myapple)
    from a Mac OS X system specialist; these have been available yet hard to get
    as not all persons involved with them seem to know if they still exist until someone
    is asking. These aren't retail stock, are special discs for computers who could use
    a system later than original old discs; these are complete install discs not for one
    specific series of Mac. Generally they'd work in supported PowerPC G4/G5; but
    do not replace specialized original install DVD, such as an early Intel mac requires.
    You'd need to have a serial number of the computer, and a method of payment
    when seeking some replacement system media from Applecare or Apple sales
    and these discs are not available in a retail store. The original Retail discs are
    labeled differently and shipped in a retail box with a big X on the front. Other
    sources for retail 10.4 Tiger or 10.5 Leopard may be online via amazon sellers
    or computer resellers who handle repaired Macs. Avoid mystery grey label ones
    that were intended to be sold and kept with their original computer kits.
    Good luck!

  • I have a PC. When I upload more than one photo I need to move them to where they print in the order I want them to print. How can I do this?

    I have a PC. When I bring my uploaded photos from my computor into the organizer, I want to rearrange them so when I print them they come out in the order I want them to print. Any reccomendations on how to do this?  I need rearrange them and need to print about four photos per page.

    Anyone?

Maybe you are looking for

  • How can I recover photos that have become corrupt

    Hi guys, having some trouble with old photos on my pc (windows 7), any help would be much appreciated. I have some old holiday photos on my pc in a specific folder . I had downloaded a password protection application and had set it up so that i had t

  • Customer Overdue check at the time of Delivery

    Dear Friends, Our client requires to have a customer over due check at the time of delivery creation. If the days are above 45 in arreas, the delivery document should not be created. At present the check is placed at the sales order creation, but the

  • Mails not going automatically to out of sap systems

    Hi, How to send mails automatically from SAP to other external mail id? when we are pushing manually it is going,but automatically its not going. We have configured SMTP in SCOT t.code and created background job also. Pls advise. Thanks Syed

  • How to modify the SQL being generated from BC, to fix the issue

    Hi, We have seen a strange issue in our implementation.The issue is also reproducible in Vanilla environment. In Contact List Applet, if we Query in First Name or Last Name fields in UI, the Query being generated is,showing that, Siebel is Querying f

  • A quick Array Problem

    hey all, i'm having a dumb array problem, I cannot figure out what I've done wrong ! I've set up an empty array of JButtons (because that '4' is actually a variable in my code) HERE IS THE CODE //=========================== JButton[] buttons = new JB