Jeditorpane doesn't convert "Enter"-buttonklick to br

Hi all,
i have jedtiorpane(text/html) where i can type in text.
if i push the Enter-Button jeditorpane doesn't convert this button-click to <br>.
How can i solve it? Is there any sample-code?
its had me tearing my hair out all day..
If somebody could please help me what i do wrong here, i would highly
appreciate it.
thx a lot!
Fibo

I also face the same issue. Any solutions
Test case 1:
Enter 101110 and it formats to 10/11/2010
Now delete(erase) 10/11/2010 and enter 101110 and tab out, now the formatting doesn't work.
Also I have another question. how to control the year to start with 19 rather than 20
for example if the user enters 101138, then i want it to be 10/11/1938 rather than 20/11/2038
Edited by: user10438627 on Feb 10, 2011 9:36 AM

Similar Messages

  • UTF-8 Unicode in JEditorPane doesn't work

    I do hope this is the correct forum for this question so that some forum nazi doesn't give me grief...here goes.
    I have a JEditorPane with the contentType set to "text/html; charset=UTF-8"
    I do a .setText method with this text:
    <HTML><body><font face='Arial Unicode MS' size='3'>
    Followed by some text extracted from an RSS feed (just the contents of the <description> tag)
    and then </body></html> to finish it off.
    It displays fine apart from a unicode character, it looks like one of those 'fancy' apostrophes so that in the word "We've" the appostrophe shows as an accented a and two squares as shown in this screenshot : Screenshot
    So does that mean that 'Arial Unicode MS' cannot display Unicode as the name would suggest, or am I doing something else wrong?

    When you specify the charset in the contentType setting, you're telling the JEditorPane how to convert raw bytes that it reads from a URL into a Java string. That's assuming you use one of the setPage() methods to populate the component--but you're using setText(), which takes a String. That means the text was corrupted before you put it in the JEditorPane; you need to look at how it's getting brought in from the RSS feed. It's obviously encoded as UTF-8, but being decoded as if it were a single-byte encoding like ISO-8859-1 or windows-1252 (the default for English-locale Windows systems).

  • JEditorPane doesn't processes forms

    Hello there!
    I'm developing an app where I use a JEditorPane to view HTML documents, everything is fine, but JEditorPane doesn't process forms on a document. I need something to trigger some functions when the user clicks on the "send" button of the form.
    Any Ideas????
    Thanks in advance!

    just put an actionlistener on the button an call the functions as usual.

  • How to divide a 577 GB C local disk so that the HDD doesn't convert into dynamic?

    The problem is, I know that Windows 7 won't allow more than 4 local disks on the same HDD, and in diskmgmt.msc there are already four partitions: SYSTEM (no letter), C local disk (windows installed), Recovery (D: ), and a FAT32 system HP_TOOLS (E: ), which is barely 4 gigs. Now, the C local disk is 577 GBs, which is annoying, so I'd like to have a partition where I can store my stuff, in case I need to reinstall/recover the windows (It's not mac, so over time windows gets buggy, crashy and sh**ty, you know). How do I create an additional local disk for me so that it doesn't convert Basic disk into Dynamic, and the recovery partitions are untouched?
    Thanks in advance

    Thank you for your reply. You helped me a lot! I'm creating a recovery media right now. I'm assuming that if I run it, say, after a year, it will reset the laptop to its factory settings?

  • Adobe PDF Export doesn't convert my files properly - I WANT A REFUND!!!

    Adobe PDF Export doesn't convert my files properly - I WANT A REFUND!!! W
    hy can't I get the refund that was promised before I ordered it? Why isn't there any way of contacting this company? ABSOLUTE SCAM. Until I get a refund I will be warning people on Twitter & Facebook NOT to get this rubbish product.

    Of course you can get a refund: http://helpx.adobe.com/x-productkb/policy-pricing/cancel-subscription-acrobat-online-servi ces.html
    And of course you can contact Adobe: http://helpx.adobe.com/contact.html?step=XEPF_membership-account-payment
    [topic moved to ExportPDF forum]

  • TS2755 Why my iMessage doesn't convert to sms

    Why my iMessage doesn't convert to sms

    Same problem
    Even when a receive. Imessage dont understand that i dont have wi-fi so he wait to send me message (why dont convert to sms) and i receive lot of message when i came home to wi-fi. And this, X hours after they were send.

  • ExportPDF doesn't convert scanned words correctly

    https://cloud.acrobat.com/#exportpdf doesn't convert scanned words into words in Word.  It used to.  Nobody seems to be addressing this.

    Hi Sara,
    I'm only using the website, which I've used before with scanned documents with fuzzier letters.
    I don't see how the text in the print-screen image sent to ExportPDF could be any clearer, and yet I get no text results at all.  In the past, I could get quite a mess of characters and symbols from the OCR's attempt (example an h being translated as ln).  I'm definitely rethinking my software choice.
    It's interesting.  The document I looked at in the forum for turning off OCR doesn't seem applicable to the current ExportPDF screens.  (I looked there to see if something was maybe set up wrong in my connection.)  That made me wonder, too, if the OCR software had changed.
    Diane Schuler
    Financial Systems Analyst, Finance Business Intelligence | Ministry Health Care
    222 W College Ave Suite 3B | Appleton, WI 54911 |*: (920) 628-9334 | :(920) 628-9105 | *: [email protected]

  • Numbers update doesn't allow enter

    The new update of numbers doesn't allow enter when typing in individual cells now. Does anyone know how to enable this?

    I think you might be looking for thishttps://discussions.apple.com/message/16417819#16417819
    Tap in the cell where you want the newline. You should see something next to copy and paste that says new paragraph.

  • Af:convertDateTime doesn't convert the same date if entered twice

    I have a jsf page that only contains an af:inputDate field. Nested in the af:inputDate tag, is a af:convertDateTime tag with two alternative patterns: "dd/MM/yy" is the main pattern, and "ddMMyy" is the secondary pattern.
    The problem I'm having is that when I enter the same date more than once consecutively, the date doesn't get formatted.
    example:
    I enter: "111111" I get "11/11/11"
    then I enter again: "111111" and it doesn't get converted to "11/11/11"
    Has someone encountered this problem? Is there a solusion?
    source:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx"
    id="pt1">
    <f:facet name="center">
    *<af:inputDate label="Label 1" id="id1">*
    *<af:convertDateTime pattern="dd/MM/yy" secondaryPattern="ddMMyy" dateStyle="long"/>*
    *</af:inputDate>*
    </f:facet>
    <f:facet name="header"/>
    <f:facet name="end"/>
    <f:facet name="start"/>
    <f:facet name="branding"/>
    <f:facet name="copyright"/>
    <f:facet name="status"/>
    </af:pageTemplate>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Edited by: 825127 on Jan 3, 2011 10:39 AM

    I also face the same issue. Any solutions
    Test case 1:
    Enter 101110 and it formats to 10/11/2010
    Now delete(erase) 10/11/2010 and enter 101110 and tab out, now the formatting doesn't work.
    Also I have another question. how to control the year to start with 19 rather than 20
    for example if the user enters 101138, then i want it to be 10/11/1938 rather than 20/11/2038
    Edited by: user10438627 on Feb 10, 2011 9:36 AM

  • JEditorPane doesn�t display HTML special char. codes

    My application is using JEditorPane to display text/html.
    The problem comes when I try to display HTML special character codes such as
    &gt; JEditorPane ignores those codes and displays nothing.
    Do I have to convert all those strings representing special characters?
    How could I solve it?
    Thanks in advance,
    Bruno

    Here's my solution - I replace the HTMLEditorKit if it's not the first pass through. I found that the EditorKit is an instance of HTMLEditorKit for every pass except the first (which doesn't have a problem).
    EditorKit ek = displayJEditorPane.getEditorKit();
    if( ek instanceof HTMLEditorKit ) {
         // Needs to be replaced
         HTMLEditorKit htmlEditorKit = new HTMLEditorKit();
         displayJEditorPane.setEditorKit( htmlEditorKit );
    // Display the HTML document
    displayJEditorPane.setPage( resultURL );I'll spread my Duke Dollars around to everyone who offered a suggestion later today if I don't hear of a better solution.
    Thanks.

  • Dos2unix doesn't convert some RDF files to BINARY...

    Hi,
    I have a peculiar issue with a couple of RDF's.
    My scripts copies all the files to a temp directory; move them to the relevant tops/paths and then do a "dos2unix" on the RDF and RTF files.
    Majority of the reports work fine when this is done.
    But this doesn't work fine for 2 RDFs.
    1) I have customized AR Customer Invoice program (RAXINV_SEL.rdf).
    Once i run the installation scripts, it copies everything and does a dos2unix on RDF and RTF files. I can see the custom RDF (XX_RAXINV_SEL.rdf) in $CUSTOM_TOP/reports/US directory.
    It doesn't even throw any error when i run the below command in the Custom_Top.
    [chundurk-DEV]/u01/oracle/EBSDEV/apps/apps_st/appl/xxabc/12.0.0/reports/US > dos2unix XX_RAXINV_SEL.rdf
    dos2unix: converting file XX_RAXINV_SEL.rdf to UNIX format ...
    [chundurk-DEV]/u01/oracle/EBSDEV/apps/apps_st/appl/xxabc/12.0.0/reports/US >
    But when i run the report, It thows the below error:
    REP-1070: Error while opening or saving a document.
    REP-0110: Unable to open file '/u01/oracle/EBSDEV/apps/apps_st/appl/xxbwp/12.0.0/reports/US/XX_RAXINV_SEL.rdf'.
    When i drag the RDF to $CUSTOM_TOP/reports/US in BINARY Mode using FTP, the report works perfectly fine.
    2) This is happening the same way for one of my custom reports too.
    We've developed about 50-60 reports and all of them work fine, except these 2 reports.
    Please suggest. Thanks in advance for your help.
    Regards,
    Kesava

    Gareth,
    Lets ignore the functionality of migration tool for now; its happening the same when i do it directly using SSH Secure Shell Unix & FTP tool.
    The steps i generally follow to migrate the reports are provided below:
    1. Logged in to SSH Secure Shell Unix & FTP tool.
    2. Created a temporary folder say 'reports' in /home/user directory.
    3. Drag all the report files to /home/user/reports directory in default mode i.e., ASCII (Migration tool ClearQuest also does the same).
    4. Then provide permissions on these files:
    chmod 755 *.*
    5. Run the shell Script:
    090xxbwp_inv_mov_apps.sh apps apps ghoord01:1521:EBSDEV.
    Shell script just has the commands shown below:
    1. cp -f 090XXBWP_INV_MOV.rdf $XXBWP_TOP/reports/US/XXBWP_INV_MOV.rdf
    cp -f 090XXBWP_INV_MOV.rtf XXBWP_INV_MOV.rtf
    2. FNDLOAD $1/$2 O Y UPLOAD $FND_TOP/patch/115/import/afcpprog.lct 090XXBWP_INV_MOV_CP.ldt - CUSTOM_MODE=FORCE
    FNDLOAD $1/$2 0 Y UPLOAD $XDO_TOP/patch/115/import/xdotmpl.lct 090XXBWP_INV_MOV_XML.ldt - CUSTOM_MODE=FORCE
    3. dos2unix $XXBWP_TOP/reports/US/XXBWP_INV_MOV.rdf
    dos2unix XXBWP_INV_MOV.rtf
    4. chmod 755 $XXBWP_TOP/reports/US/XXBWP_INV_MOV.rdf
    chmod 755 XXBWP_INV_MOV.rtf
    5. XDOLoader command to attach the RTF File to XML Template Skeleton.
    Once this is done; It works perfectly fine for all the reports (RDF's), except two of them.
    For the two reports that doesn't work; it thows the below error when the report is ran in APPS:
    REP-0110: Unable to open file 'XXBWP_INV_MOV.rdf'.
    REP-1070: Error while opening or saving a document.
    REP-0110: Unable to open file '/u01/oracle/EBSDEV/apps/apps_st/appl/xxbwp/12.0.0/reports/US/XXBWP_INV_MOV.rdf'.
    Workaround currently in Use:
    Transfer the RDF file manually in BINARY MODE to $XXBWP_TOP/reports/US directory and the issue is resolved.
    Request you to let me know if you can provide me with any permanant solution for this.
    Thanks,
    Kesava

  • When trying to create a PDF from a website the font doesn't convert properly to a readable format

    Hello,
    As the title states when I find something on a website that I want to create a PDF with, the font that's readable from the website converts once the PDF is created to an unknown format that isn't readable in any language. I'm using Adobe Acrobat XI Pro and quite the novice at using Acrobat, so any info would be a great help. Did try and search around the forum for the issue but I wouldn't really know what to type as I'm not familiar with what the text is converting to.

    Ok so I go to a web page and select something to print. Once I've clicked print I switch over from printer/micosoft xps docu writer/fax and select Adobe PDF. All goes through with a 'Create Adobe PDF' coming up progressing through to eventually save and store. Once I open the file it end up as the picture above. I have the same version on another computer and that works fine but this particular Sony laptop it doesn't seem to work properly. 

  • Why doesn't the enter key respond when saving a web page?

    go to save a web page, complete and when i press the enter key it doesn't work. i have to move the mouse pointer to the save button and click it that way but it slower this way. why won't it let me just push the enter button on my keyboard to save?
    any way to fix this?

    The '''<u>S</u>ave''' button has focus in the Save As window for me, and hitting either Enter or S will work.
    But if I change the File <u>n</u>ame or select a different file Type I have to use the mouse to save it; the focus is away from the Save button.
    If it doesn't work that way for you, see how it works when using the '''Firefox SafeMode'''.
    https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode

  • Chrome Create PDF Extension Doesn't Convert Secure Web-pages (Acrobat XI)

    I still cannot convert secure webpages in Google Chrome using the Acrobat XI Create PDF Extension.  This is annoying when for example I checkout from a site and I want to convert my receipt to a PDF, however it simply does not work.  see other posts for details:
    Adobe Acrobat - Create PDF Chrome Extension Doesn't Work
    Re: Adobe Acrobat - Create PDF Chrome Extension Doesn't Work
    Re: Adobe Acrobat - Create PDF Chrome Extension Doesn't Work
    Is anyone else having this problem?  Is Adobe even aware or addressing the issue?

    Hi
    Thanks for reporting the issue. We are able to reproduce this issue and we have reported it to Acrobat Engineering team. Now Acrobat engineering team will investigate it.
    You can try creating PDF with Firefox or Internet Explorer as a workaround.
    Regards,
    Tanvi

  • JEditorPane doesn't redraw if URL same

    I'm generating HTML by styling an XML file using XSLT to a temp HTML file and using jEditorPane.setPage( tempURL ) to display it. No problem there. However if I regenerate new content to the same file name and ask JEditorPane to draw this then it says to itself "this is the same URL I put up before so I'm not going to redraw it" - even though the actual contents of the file have changed.
    I don't want to have to use a different temp file for each run, or even to flop back and forth between 2 temp files (which I believe would work).
    How do I get JEditorPane to redraw if the file name is the same as the previous call?

    Here's my solution - I replace the HTMLEditorKit if it's not the first pass through. I found that the EditorKit is an instance of HTMLEditorKit for every pass except the first (which doesn't have a problem).
    EditorKit ek = displayJEditorPane.getEditorKit();
    if( ek instanceof HTMLEditorKit ) {
         // Needs to be replaced
         HTMLEditorKit htmlEditorKit = new HTMLEditorKit();
         displayJEditorPane.setEditorKit( htmlEditorKit );
    // Display the HTML document
    displayJEditorPane.setPage( resultURL );I'll spread my Duke Dollars around to everyone who offered a suggestion later today if I don't hear of a better solution.
    Thanks.

Maybe you are looking for

  • IPod Touch 2G 8GB wont turn on or connect to computer. Device Malfunctioned

    My iPod Touch 2G 8GB will not turn on or connect to my (or any other) computer or accesory. I'm not sure but I believe my USB cord may have been damp from a recent flood. When I plug it into a Vista computer, a popup reads "One of the usb devices att

  • Logic always opens on 2nd monitor!

    Hi, I am using Logic Studio 9.0.1 under SnowLeopard. I have the annoying problem that my Logic always opens on my 2nd monitor, even when I create a new project. How can I change this? Thanks in advance. BiTRiP

  • I can't print the form correctly in Russian

    Hello I have paid account for FormsCentral. Some of my forms are in Russian. I can create forms, my clients can fill in the forms and I can view the responses on the screen without any problem. But when I try print response or transform in in pdf I g

  • Using regr_slope in sql query

    Hi , I have one question on predicting the sale for next 5 years  along with month  the data as follows. YEAR  Month  Total_Sale 2009    1          88187 2009     2         87654 2009     3         87656 2008     1         10000 2008     2          3

  • Page dimensions query in dps

    Hello, am new to DPS, am really enjoying learning the package. I have two questions, which are causing me difficulties; 1 can you extend the depth of a page for designing to an iPad 2. can you extend images across the width of two pages? Have checked