Problem with JEditorPane p lost when press ENTER

OK, so here goes my problem.
I have in my application a JEditorPane which formats text with bold italic and so on.
The user can save this into a text file.
So far so good, but the new lines are lost, no <p> tag is inserted, and no ALIGN either. All other tags - <b> <i> work fine.
If I insert <p> tags into the text file and then open it in my application, they remain there fine.
Any idea on this one?
P.S. pls include some code samples, I'm not advanced ;)

here is some code what i have used in my report program , i will still like to remind that its an Logical database program (PNP) for ABAP-HR , right now i tried the code mentioned above but not getting any result.
TABLES: pernr,sscrfields,pa0001.
*& Declaring Type-pools
TYPE-POOLS : slis.
*& Declaring Infotypes
INFOTYPES: 0000,          " Action
                     0001.          " Org. Assignment
*& Selection Screen
SELECTION-SCREEN BEGIN OF BLOCK n1 WITH FRAME TITLE t1.
PARAMETER : p_despat TYPE zhr_transfer-despt OBLIGATORY,              " Despatch Number
            r_pernr  TYPE pa0001-pernr OBLIGATORY,                                    " Reporting to
            re_pernr TYPE pa0001-pernr OBLIGATORY,                                   " Relieving Authority
            a_pernr  TYPE pa0001-pernr OBLIGATORY MODIF ID one.             " Authorize Person
SELECTION-SCREEN END OF BLOCK n1.
INITIALIZATION.
  t1 = 'Transfer Records'.
  LOOP AT SCREEN.
    IF screen-name = 'PNPPERNR-LOW'.                                  " Personnel Number (Mandatory)
      screen-required = 1.
        MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
AT SELECTION-SCREEN OUTPUT.
  IF a_pernr IS INITIAL.
    a_pernr = pa0001-ename.
  ENDIF.
END-OF-SELECTION.

Similar Messages

  • Problem in custom jsp page when pressing enter button

    Hi to all,
    <pre>
    I am created a cutom jsp page. When i am clicking on a button it working fine, but if i am pressing
    Enter key it redirecting to home page and showing an exception in cosole.
    <b>Exception is </b>
    18:00:50,718 ERROR [WEBAPP] Class/Method: tcActionBase/execute encounter some problems: {1}
    java.lang.NullPointerException
    at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unknown Source)
    at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
    at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
    at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:110)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:619)
    18:00:50,718 ERROR [WEBAPP] Class/Method: tcAction/execute encounter some problems: {1}
    java.lang.NullPointerException
    at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
    at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
    at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:110)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:619)
    18:00:50,718 WARN [RequestProcessor] Unhandled Exception thrown: class java.lang.NullPointerException
    18:00:50,718 ERROR [[action]] Servlet.service() for servlet action threw exception
    java.lang.NullPointerException
    at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
    at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:110)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:619)
    </pre>
    Edited by: iceman513 on Aug 11, 2010 7:14 PM
    Edited by: iceman513 on Aug 24, 2010 10:32 AM
    Edited by: iceman513 on Aug 24, 2010 10:33 AM

    once you click a button, say, "Draw Rectangle", it should draw a rectangleYes, but you need to repaint() the component (in your case panel) to see the change.
    The error is: The method paintComponent(Grpahics) is undefined for the type ObjectThe compiler never lies. As far as your code goes, you have added a method paintComponent(...) to a class that implicitly extends Object. Perhaps you wanted to create an anonymous subclass of JPanel.JPanel panel = new JPanel() {
      public void paintComponent(Graphics g) {
        super.paintComponent(g);
        myPaint(g);
    };Note the changes in brace and semicolon placement.
    Also:
    1. You're setting a FlowLayout to a JPanel, which is anyhow the default layout manager. And when using a layout manager, setSize calls are redundant and effectively ignored.
    2. For a JFrame to be centered on the screen, setLocationRelativeTo(null) after setting the size, not before.
    3. To void visual artifacts, setVisible(true) after all other properties are set.
    It looks to me like you've been throwing together bits of code from here and there without adequate understanding. I recommend you go through the Swing tutorials linked from the topic listing page for this forum.
    db

  • When I purchase and app or update it, it comes up with 'There is a billing problem with a previous purchase. Please enter another payment method'?

    So when I go to update my apps and/or purchase them, a pop up comes up saying 'There is a billing problem with a previous purchase. Tap continue and sign in to view billing information.' So I press continue and sign in, then it goes to my 'Payment Method' page. In red writing below, it says 'There is a billing problem with a previous purchase. Please enter another payment method.' Because I used a MasterCard for my last purchase, it won't let me change it. I redeemed my account from an Itunes gift card to $20 but I cannot use it as it doesn't give me the option of using it. My only billing options are either a Visa Card, MasterCard or Amex Card. Please help me if possible!!!

    same here. i was using a visa card ...now  i can't because of this "error". my account is not empty, info is correct, don;t understand why this is happening. Two days ago it was working fine, then i wanted to update an app, and this stuff begins.
    Help:)

  • HT201487 i have a problem with xcode programming app when i lunch to it it asking me to enter my password and when i enter it the program show that it is wrong but am 100% sure it's wright so please help me with this issue thanks

    i have a problem with xcode programming app when i lunch to it it asking me to enter my password and when i enter it the program show that it is wrong but am 100% sure it's wright so please help me with this issue thanks

    That's not very intuitive
    Check your mail server setup (mail>preferences>accounts>) choose your MobileMe account and select Outgoing Mail Server (SMTP) dropdown box, select Edit SMTP server list, verify that each instance of the me server has a password, if there are more than one and you only have one account then delete the one without a password.

  • I have a problem with the pop-up prompt to enter my serial number for installation, it won't pop up when I entered the redemption code. Can someone help?

    I have a problem with the pop-up prompt to enter my serial number for installation, it won't pop up when I entered the redemption code. Can someone help?

    There is no pop up. There is a window that is part of the installation process. If you entered a wrong number, like a redemption code, you would have wound up installing it as a trial. In that case, go to the Help menu in the editor and look for an option there.
    If that isn't what you're talking about, you really need to explain in more detail.

  • Problem with my 7911 phone when i press Keys 1,2 or 3 it leads me to settings menu.

    I have a problem with my 7911 phone when i press Keys 1,2 or 3 it leads me to settings menu. I cannot factory reset phone because  when i press 1 after holding # it starts booting.

    I have never heard of bug causing this type of an issue. Do you have other phones of the same models and if so do they behave the same way? Sounds to be like faulty phone.
    Chris

  • Problem when pressing ENTER for InputText object text

    Hi,
    I encountered a very strane anomly when pressing ENTER for
    InputText object text.
    1) I set the InputText object for having maxium 2 characters.
    2) I set the InputText object for getting only numbers using
    .restrict= "0-9";
    Now, say the InputText is now empty.
    1) Say I press the number "7" - the text line is now
    containing - "7".
    2) Now, I press ENTER - the "7" is cleared from the text
    line.
    Now, while the text box is clear, we think that we can insert
    2 numbers.. but not!
    3) I press a number, say "9" - the line contains "9"
    4) I try to insert another number... but I can't!!
    In order to be able to insert two numbers, I have to press
    twice the Backspace in order to clear the "9" , and another ghost
    note (the ENTER?).
    How can I solve this anomaly?
    Thanks
    Yossi

    Thank you very much! it works.
    (Those tiny anomalies are so annoying, that it is so great
    feeling to have them solved, thanks)

  • When pressing enter the values are converted to upper case in module pool

    hi
    tehre are three fields for maintanece in module pool
    wheni press enter the fields are converted to upper case i want to avoid this as i dont want to have the upper case
    i need to save in table as waht user has inputed not in upper case
    so i dont want the fields to be automatically converted to upper case whne pressing enter on screen
    regards
    Nishant

    hi Nishant ,
    <b>The solution to ur problem is breifly explained with a sample module pool program .</b>check it below :
    IN the TOP INCLUDE**********************
    DATA :
           wempid TYPE z7684dp-empid ,   " same name as in the screen declaration
           wname TYPE  z7684dp-name,
           wacc TYPE  z7684dp-account,
           wdesg TYPE  z7684dp-designation,
           ok_code TYPE sy-ucomm ,
           wa_z7684dp TYPE z7684dp,
           t_z7684dp TYPE STANDARD TABLE OF z7684dp,
    *****IN THE PAI OF THE SCREEN 100(for example)***********
    MODULE user_command_0100 INPUT.
      CASE ok_code .
        WHEN 'CRE' .                 " function code for the pushbotton to insert the values
    TRANSLATE wdesg TO LOWER CASE.
    TRANSLATE wempid TO LOWER CASE.
    TRANSLATE wname TO LOWER CASE.
    TRANSLATE wacc TO LOWER CASE.
          wa_z7684dp-empid = wempid .
          wa_z7684dp-name = wname .
          wa_z7684dp-account = wacc .
          wa_z7684dp-designation = wdesg .
          INSERT INTO z7684dp VALUES wa_z7684dp .
          IF sy-subrc EQ 0 .
            MESSAGE 'SUCCESSFUL INSERTION TO TABLE' TYPE 'I' .
          ELSE .
            MESSAGE 'UNSUCCESSFUL INSERTION TO TABLE' TYPE 'I' .
          ENDIF.
          CLEAR: wa_z7684dp , wempid , wname , wacc , wdesg.
    REVERT BACK WITH ANY FURTHUR QUERIES
    <b>DO REWARD WITRH POINTS IF USEFUL :)</b>

  • OneNote 2013: Font changes when pressing Enter / Return key

    I have the same problem as this guy (who didn't get a relevant answer): http://social.technet.microsoft.com/Forums/office/en-US/233833f7-dde8-414d-bdca-604ed8d57667/onenote-2013-font-changes-when-pressing-enter-return-key?forum=officeitpro
    I set my default to Calibri 14, but every time I press enter (I make a lot of bullet lists) the font changes to Calibri 11. 

    Hi,
    Did you change the default font after you typed a few words in a note container?
    Setting the default font in Microsoft Office OneNote affects text that you type in new note containers only. It does not affect existing text or text that you add to existing note containers.
    If you want to change the font in an existing note container, you need to change it manually under
    Home tab > Basic Text.
    Thanks,
    Steve Fan
    TechNet Community Support

  • Hi, i have problem with my apple id when i want purchase app even free one, asked me for complete my card informations... but i don't want to use debit card because already i have gift card and charge it in my id... please help

    hi, i have problem with my apple id when i want purchase app even free one, asked me for complete my card informations... but i don't want to use debit card because already i have gift card and charge it in my id... please help me.
    when i unchek the card information it was show me an error!

    Though you are being asked for card details it doesn't necessarily mean that the card will be charged for the purchase (unless you want to gift content). Have you tried entering your card's details to confirm the account ? You should then be able to remove it.
    From http://support.apple.com/kb/HT5582 :
    When making purchases, content credits are used first, followed by Gift Certificate, iTunes Card, or Allowance Account credits; your credit card or PayPal account is then charged for any remaining balance
    Is it a new account ? If it is then unless a new account is created by following the instructions on this page (the instructions won't work with existing accounts) : http://support.apple.com/kb/HT2534
    then you will need to enter card details (debit cards are no longer accepted in all countries) before the account can be used to download any item from the store.

  • My ipod touch is having problems with the headphone jack when I rotate a little song stops

    my ipod touch is having problems with the headphone jack when I rotate a little song stops

    Hey Silverdemon, sounds like a short, most likely in the headphones. Try a different set of headphones with this iPod or try the headphones with a different device. If the problem stops with your iPod or it moves to another device, then replace the headphones. If within 1 year of date of purchase Apple will replace the headphones for  free if problem is a defect, not abuse. If the problem continues with a different set of headphones, check the port for damage and foreign debris. If you note debris, attempt to remove it, if damage noted contact Apple and set up an appointment to have it evaluated. if nothing appears wrong, try plugging / unplugging to jack about 12 times maybe corrosion on the contacts if so that should clean it. Next thing to try reset your iPod. After that try restore from backup. Last resort, restore to new. Just make sure you make a full backup to your computer before you restore so no data is lost. If nothing works, contact Apple and set up an appointment to have your iPod evaluated. Good luck, Cheers.

  • Focus lost when pressing ALT key

    Hi,
    is there any way to prevent the focus to be lost when pressing ALT key in an AIR app??
    I tried event.preventDefault() in KEY_UP and KEY_DOWN events but it doesn't work
    when the user press the ALT key, the stage loses the focus
    thanks

    I am now having trouble with the same issue. I have tried removing the ALT key from the Input Map from my frame and the component I'm having trouble with. I have also tried setting my own action in the action map for this. We also tried listening for the key pressed event and putting focus back to the combobox where I want focus to remain. I am now working on trying to use the processKeyEvent method to handle this, but have not had any luck as of yet with that. If anyone has some help on this, I'd greatly appreciate it!

  • When pressing Enter/Return to commit  a marquee selection the Feather box turns white for input!?

    When pressing Enter/Return to commit a marquee selection the Feather box turns white for input (and I'm not trying to chage the feather values)!? 
    Pressing Enter/Return should commit the selection but it doesn't why? I have not changed any short-cut preferences in PS CS6.
    When I use the Marquee or Lasso tool and make a selection and I'm happy with the selection, I press the Enter (PC)/Return(Mac) and the the "marching ants" should disappear...
    this has always worked until today!?
    Now, when I press the Enter key, the Feather box (next to the Anti-alias) on the upper left corner goes from grey to white and wants me to change the value?

    I was not able to reproduce the behavior you mentioned, though I don't normally make a practice of using the Enter key for that function (I tend to double-click to close the selection).
    Nor could I reproduce the behavior by holding down a modifier key.
    Have you tried restarting Photoshop?
    Rebooting?
    Resetting Photoshop's preferences to defaults?
    -Noel

  • When I turn my computer on I receive a message that Apple wants to make a change to the hardware. I click on yes but nothing happens. I think this has something to do with Apple "push". I had a problem with this in iTunes when I tried to sync my iPod Touc

    When I turn my computer on (Windows 7) I receive a message that Apple wants to make a change to the hardware. I click on yes but nothing happens. The change has something to do with Apple "push". I recently had a problem with"push" on iTunes when I tried to sync my iPod Touch. I have latest software for iTunes and iPod. Can anyone tell me what to do to get this change to install?

    ptford wrote:
    When I turn my computer on (Windows 7) I receive a message that Apple wants to make a change to the hardware
    Since hardware cannot be changed with software, perhaps you would be so kind as to post the exact wording of the message?

  • I have some problem with my computer because when i turn it up, the screen turns in a blue colour and the sound doesn't work and in this way i can't hear anything

    i have some problem with my computer because when i turn it up, the screen turns in a blue colour and the sound doesn't work and in this way i can't hear anything

    Will u help me or not?

Maybe you are looking for

  • Help with configuring docx - PDF conversion needed

    Hi all, Problem is: pdf is created but it is not pdf, files are just renamed to .pdf I have following environment - centos 5.6 - WLS 10.3.5.0 - UCM 11gR1-11.1.1.5.0-idcprod1-110413T184243 (Build:7.3.2.182) - IBR Version:11gR1-11.1.1.5.0-idcprod1-1104

  • How to launch photoshop plug-ins under Lightroom?

    Do Somebody know a way how to launch Adobe Photoshop plug-ins under Lightroom? Especially the case is interesting when there is only Lightroom and there is not an installed copy of Photoshop. There are some 3th party favorite Photoshop's plug-ins (so

  • Macbook pro wireless in europe

    i will be using my mac in austria is there more hot spots in austria than say seattle. can i just use my software to locate wifi automatically i also have Istumbler loaded on my mac to help locate wifi and, i use the household outlet to power my mac

  • I am selling my old phone, what should I do to make sure it is ready to be activated by someone else?

    I recently bought a new phone and I want to sell my old one (an iPhone 4).  I activated my new phone and erased all the data on my old phone so there is no personal information on it.  Do I need to do anything else to make sure the buyer can activate

  • Basic masking question

    In AE is it possible to mask one layer with the one above it (ala Illustrator)? I'm aware of the in-layer masking capabilities of AE. thanks, captain video