Document listener can catch line return?

I have the following DocumentListener (implemented in MyInputListener) in a JPanel where I process each character as it's typed in by the user from the insertUpdate() method. But the one character I can't seem to get is the enter key. It's like the JTextField is capturing that for itself and not passing this on to my DocumentListener.
Anyone have ideas on how to get around that?
myField = new JTextField();
MyInputListener listener = new MyInputListener();
myField.getDocument().addDocumentListener(listener);
public class MyInputListener implements DocumentListener {
     public void insertUpdate(DocumentEvent de) {
          // never falls here or in any of the other xUpdate() methods.

JTextField is designed to work with a single line of text, so it filters out linefeeds before any listeners get fired. If you're working with multiline text, you should be using a JTextArea, not a JTextField.

Similar Messages

  • Itunes document manager pro will not open a document with .cwk extension. It will catch the document then error message states that it cannot open document. Can anyone tell me what Im doing wrong?

    Itunes document manager pro will not open a document with .cwk extension. It will catch the document then error message states that it cannot open document. Can anyone tell me what Im doing wrong?

    Forgive my ignorance but I have never hear of iTunes Document Manager Pro. If you mean Document Manager Pro, i was able to find that. Back to your problem, have you tried opening one of those files in the iOS iWorks apps? Form the quick read that I did about this, .cwk files can be opened by Pages, Numbers or Keynote, depending on what type of document that it is and those files can be read by Document Manager Pro, after properly saving them. I don't see that you can go directly from the .cwk file in Document Manager Pro without converting them first.
    I took a very quick look at the app, so I may be a missing something about its capability.

  • Manual account clear but can see line item after post document

    Hi Guru!
         I have post account clear with transaction code F-03  with open item zero balance such as
    account 214001 balance +500
    account 214001 balance -500
    when I simulate entry the system not show line item for post document but can post it . I want to know why ?
    thank you very much .

    Dear,
    This is standard behaviour...if line item which you are clearing have zero balance then system will not show any line items since open itemss are cleared....
    when you have tolerance difference or the residual posting then only system will show the line item....
    Regards,
    Chintan Joshi

  • I bought a new computer running Lion 10.7.3 and transferred my applications and files from my old Mac using migration assistant but I can't find/transfer my photos from iPhoto and I can't find my old documents such as previous tax returns.

    I bought a new computer running Lion 10.7.3 and transferred my applications and files from my old Mac using migration assistant but I can't find/transfer my photos from iPhoto and I can't find my old documents such as previous tax returns.

    Look for them on your old computer, when found copy the files to a USB drive and move them to the new computer.

  • Can we use return statement in procedure?

    Can we use return statement in procedure or we can use more than one return statement in procedure?

    HamidHelal wrote:
    NOReally? Did you at least test it? You can use RETURN in procedure or in anonymous PL/SQL block. The only restriction is you can't specify return value:
    SQL> begin
      2      dbms_output.put_line('Before return');
      3      return;
      4      dbms_output.put_line('After return');
      5  end;
      6  /
    Before return
    PL/SQL procedure successfully completed.
    SQL> create or replace
      2    procedure p1
      3      is
      4      begin
      5          dbms_output.put_line('Before return');
      6          return;
      7          dbms_output.put_line('After return');
      8  end;
      9  /
    Procedure created.
    SQL> exec p1;
    Before return
    PL/SQL procedure successfully completed.
    SQL> begin
      2      dbms_output.put_line('Before return');
      3      return 99;
      4          dbms_output.put_line('After return');
      5  end;
      6  /
        return 99;
    ERROR at line 3:
    ORA-06550: line 3, column 5:
    PLS-00372: In a procedure, RETURN statement cannot contain an expression
    ORA-06550: line 3, column 5:
    PL/SQL: Statement ignored
    SQL> create or replace
      2    procedure p1
      3      is
      4      begin
      5          dbms_output.put_line('Before return');
      6          return 99;
      7          dbms_output.put_line('After return');
      8  end;
      9  /
    Warning: Procedure created with compilation errors.
    SQL> show err
    Errors for PROCEDURE P1:
    LINE/COL ERROR
    5/9      PL/SQL: Statement ignored
    5/9      PLS-00372: In a procedure, RETURN statement cannot contain an
             expression
    SQL> SY.

  • Report invoice document number againt PO line item

    Hi Forums,
    Can any body so kind to tell me is there any standard report in SAP 4.7 C where we can get the list of invoice document number against each line item of PO.
    I have tried the ME2N & ME2L report. If I double click the POH then only it give me the invoice document report. But i want a report where I get invoice document no against each line item wise in PO.
    Thanks in advance.
    Regards,
    sp sahu

    Hi sp sahu,
    I am sorry, but I am not aware of any report which might suit your requirements, this is the reason why I addressed you to the table EKBE. You might build your own report out of this table.
    Sorry!
    Esther.

  • The document "BOULET PEANUT - OFF LINE 3-QuickTime H.264.mov" could not be opened. An unknown error occurred (-101)

    I turned on my mac this morning after using Qt all day yesterday with no problems
    I get this message
    The document “BOULET PEANUT - OFF LINE 3-QuickTime H.264.mov” could not be opened. An unknown error occurred (-101)
    Also QT will not play the audio of the files
    I'm on a mac pro, 10.7.4
    Everything updated
    Any know whats up and can help solve this, it seems to be a software related problem to QT 7 or X

    Exactly the same by my iMac.
    "The document ... could not be opened. An error occurred (-101)"
    I can play the same video with VLC player but not with QuickTime.
    QuickTime and iTune can not play anything at all.
    VLC Player however can play all medias without any problem.
    All my apps are uptodate.
    What could be the problem?

  • Unable to trace out the Reference Document number in commitment line item.

    Dear All,
          Kindly help me in bellow problem
    When I click the reference document no. in the line item wise display the commitment in t-code S_ALR_87013558 at that time the system open the display PR screen and the massage is displayed in the below, the Purchase document does not exist.
    Due to this reason the price capture in commitment line item is not traceable and I am not able to delete the commitment line item.
    Kindly suggest how to trace out the reference document number and delete it and release the commitment price.
    Thanks,
    Asu.

    >
    Asutosh Mahapatra wrote:
    > Dear All,
    >
    >       Kindly help me in bellow problem
    >
    >
    > When I click the reference document no. in the line item wise display the commitment in t-code S_ALR_87013558 at that time the system open the display PR screen and the massage is displayed in the below, the Purchase document does not exist.
    >
    > Due to this reason the price capture in commitment line item is not traceable and I am not able to delete the commitment line item.
    >
    > Kindly suggest how to trace out the reference document number and delete it and release the commitment price.
    >
    > Thanks,
    > Asu.
    Can you explain what is your requirement..?
    Do you want to correct the data in the report..?
    Or  it is effecting your availability control and you want to correct it..?
    Or you want to trace a deleted document..? Which is not possible...

  • How to read/get the document attached to PO line item

    Hi experts,
    I got a requirement wherein I need to read/get the document attached at PO line item and to send that document through mail as an attacment .
    please suggest me how to proceed on this.

    actually your are picking up the correct data from Table EKET (EKET-EINDT) but your are printing that in item data loop for EKET might have already executed in your script and the header of that internal table consist the last entry of the table so for that. Fetch the delivery date explicite from the Table EKET when your in item level processing and print that.
    For Example u can use this code.
    To print you have write the this code in Script item level printing window "MAIN" window
    Following perform is called to get the line item delivery date in PO
    {/: PERFORM GET_DEL_DATE IN PROGRAM ZPerform_prog
    /: USING &EKPO-EBELN&
    /: USING &EKPO-EBELP&
    /: CHANGING &DEL_DATE&
    /: ENDPERFORM}
    {* Dellivery date &DEL_DATE& }
    write the below code in the Z program "ZPerform_prog"
    { FORM get_del_date  TABLES in_par STRUCTURE itcsy
                             out_par STRUCTURE itcsy.
      READ TABLE in_par WITH KEY 'EKPO-EBELN'.
      CHECK sy-subrc = 0.
      $_po_no = in_par-value.
      READ TABLE in_par WITH KEY 'EKPO-EBELP'.
      CHECK sy-subrc = 0.
      $_po_line = in_par-value.
      SELECT *
      FROM eket UP TO 1 ROWS WHERE ebeln EQ $_po_no AND ebelp EQ $_po_line.
        $_del_date = eket-eindt.
        CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
          EXPORTING
            date_internal            = eket-eindt
          IMPORTING
            date_external            = $_del_date
          EXCEPTIONS
            date_internal_is_invalid = 1
            OTHERS                   = 2.
        READ TABLE out_par WITH KEY 'DEL_DATE'.
        CHECK sy-subrc EQ 0.
        out_par-value = $_del_date.
        MODIFY out_par
                    INDEX sy-tabix.
        CLEAR : $_po_no , $_po_line ,$_del_date.
      ENDSELECT.
    ENDFORM.                    "GET_DEL_DATE }

  • A gap between letters started to show in my indesgn files. tried to undo with tracking, the paragraph settings. nothing helped. it ruins the fluent view of the document. how can i restore the program so that doesn't happen?

    a gap between letters started to show in my indesign files. tried to undo with tracking, then with the paragraph settings. nothing helped. it ruins the fluent view of the document. how can i restore the program so that doesn't happen?
    for example: say i write a paragraph. then, in a weird some sort of way an involuntary gap suddenly appears between different letters of random words(i did not recognize any pattern to the gap appearing) throughout the entire paragraph. once i've double clicked on that paragraph, and made a minor change, lets say tapped a 'space' key, and then clicked ctrl+z to undo, it has aligned(or fixed) the entire paragraph and made it look ok again. i've tried numerous ways to undo the entire thing, but cannot find the reason. i've been working for a few years and there's no reason why this thing all of a sudden should happen right now.
    if anyone has stumbled on something like that and can advise, i would welcome it.
    MNS-KG
    Vadim

    yep...i'm typing with hebrew. i'll make a printscreen with the settings you've asked for@:
    if you look closely you'll see that almost every line has a single letter apart. in hebrew there is no usually a singe letter structured words.

  • Can a method return a class ?

    hi,
    i have a simple question.
    can a method return class value ?
    in the below script i did'nt understand the commented line.
    package com.google.gwt.sample.stockwatcher.client;
    import com.google.gwt.user.client.rpc.RemoteService;
    import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
    @RemoteServiceRelativePath("login")
    public interface LoginService extends RemoteService {
      public LoginInfo login(String requestUri);  //What is this ? is this a sample of what i asked ?
    }

    The answer to your question is yes.
    The idea is that an object calls a function of another object (passing in objects to the function as arguments) in which that object returns an object (note the arguments or returned value of the function may alternately be primitive types). Each object typically encapsulates data and provides a rich set of functions to the calling object so that calling object doesn't have to deal with the raw data directly. Therefore, not only does the calling object get the data it wants, but also a rich set of functions that can manipulate that data.
    Example:
    Book book = new Book();
    int characterCount = book.getChapter(3).getParagraph(4).getSentence(12).getWord(8).getCharacterCount();
    In the above, each object (Book, Chapter,Paragraph,Sentence,Word) has a rich set of functions it provides to its caller.
    Example: the Sentence Object has a collection of word objects (raw data). Functions it provides to Paragraph object are:
    Word getWord(int index), Words getWords(), int getWordCount().
    If you haven't already done so, I suggest reading a book on Java from cover to cover to pick up such Object Oriented concepts.

  • Modify amount of space after line return

    hi
    I'm creating a html email (using a table and a new inline style each time i insert text, as advised)
    However, this query may apply to any form of html produced in dreamweaver:
    Can I set and modify the amount of space inserted after a line return?
    I know shift+return gives standard space but I'd like to ideally insert a slightly bigger space than this (although not as big a full "return" gives)
    Surely this must be possible?
    All help appreciated
    Tom

    Hi Tom,
    Hitting the enter key gives you a paragraph tag <p>  </p>
    Paragraphs have a default margin so you need to change that margin.To change/adjust the margin on all paragraphs on your page use css.
    Add it to the head of the page between style tags or to an external stylesheet:
    p {margin: 5px 0 0;}
    The above sets margin 5 pixels top 0 pixels right/left 0 pixels bottom. Adjust as per your need.
    Thanks
    Bhawna

  • I can print word documents but can not print email messages

    i can print word documents but can not print email messages
    I am using an officejet 4500 wireless on  Windows 7

    I called HP and after being on the phone for 1 1/2 hrs  They reinstalled my printer and I printed an alignment page without then I tried to print arouble  I was also able to scan a page to HP.      When I tried to print something from my email  it barely printed 2 faded lines and that was it  I openrd my word documents and was able to print a clear copy.  HP told me my cartrige was empty so I changed my cartridge with no results it was the same.  I use refill  CATRIDGES AND NEVER HAD ANY PROBLEMS but they told me they can ruin a printer.  I told them I would purchease new HP cartridges and they we agreed they would call me back on Monday to determine if my problems were solved with the new cartridges.  What I don't understand is how I can print documents but not emails.   HELP

  • Forced *^$$#% Line Returns!

    I have suffered this problem for too long now. It is in just
    about everything I do, web design, blog editors what have you.
    I would guess 90% of the time I do not want a line return
    after I type a word or phrase.
    Back in my FRONTPAGE days I got around that by using ADDRESS
    and then removing the italics.
    In the project I am working on I cant use CSS because I am
    exporting it to something else.
    Its a side bar with perhaps 40 graphics and 100 different
    lines of words or phrases. I want to put in some HTML code at the
    top and bottom to make ALL LINE RETURNS to away. FOREVER AND EVER!
    So what am I missing here?
    Is this going to be something really simple that is going to
    embarrass me?. :)
    RJ

    <p>
    poopyhead</p>
    Not sure about the nasty webforum tags there, but this would
    be a standard
    paragraph of text.
    poopyhead<br>
    This is an isolated line of text - invalid if not within some
    other
    container, like <p>, <h#>,
    <div>,<td>, etc. - followed by a line break,
    following HTML4x tag syntax. This line would be invalid on a
    page with an
    XHTML doctype.
    poopyhead<br />
    Ditto above, except following XHTML tag syntax. This line
    would be invalid
    on a page with an HTML doctype.
    >I have put that code in the blog.css file over and over
    again to no avail.
    > I think the blog editor overrides it or something. I
    Even put those
    > IMPORTANT!s behind it. :)
    I suppose we'd have to know about your blog editor.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "rack22" <[email protected]> wrote in
    message
    news:f07ru7$2k5$[email protected]..
    >I have put that code in the blog.css file over and over
    again to no avail.
    > I think the blog editor overrides it or something. I
    Even put those
    > IMPORTANT!s behind it. :)
    >
    > How about HTML code I can force into the top of the
    SOURCE area of the
    > editor?
    > How does
    work? Is that right? li ?
    >
    > Can anyone tell me the difference between these?
    >
    > <p>
    poopyhead</p>
    >
    poopyhead<br>
    >
    poopyhead<br />
    >
    > rj
    >

  • Need Order Reference Number in Sales Order Lines- Returns Tab

    Hi All,
    From which table i can get sales order reference number in salesorder->lines->returns.
    I have checked in oe_order-lines_all tables...I need to get total information for sales order like Reference type, order number, line number all those details...This information will be stored in DFF.
    Please help!!
    Thanks!!

    Hi Sanjay,
    I have checked the DFF 'Additional Line Return Information' and it contains two columns 'Return Attribute1' and 'Return Attribute2' which are storing header id of the reference item and line id respectively of a perticular sales order.
    In the sales order form on lines-->returns tab there are 3 attributes are enabled in the DFF 1) Reference Type 2) Sales Order/PO/Invoice etc.. 3) Line Number.
    Any ways i got 2 attributes ie.. Refernce Type and Sales Order/PO/Invoice Number from the DFF. Now, i am unable to findout LineNumber...Can you pls help to get this..
    Thanks!!

Maybe you are looking for

  • Best practice for loading config params for web services in BEA

    Hello all. I have deployed a web service using a java class as back end. I want to read in config values (like init-params for servlets in web.xml). What is the best practice for doing this in BEA framework? I am not sure how to use the web.xml file

  • Getting error in SOAP XI Channel

    Hi My scenario is File to Proxy and we are using PI7.31 Java only stack. I am getting below errors in Proxy -SOAP-XI communication channel. I have tried this with the several ways as suggested in other SCN, but no luck. can someone please tell how to

  • Best photo viewing option

    I have all my photos in iPhoto on my Macbook Pro and the photos are backed up to two external drives at different locations. However, I'm looking for the best option to store my photos so I can quickly pull them up and view them on my Phone and iPad

  • 10.5.6 Breaks WiFi and How To Fix It

    Just FYI out there. 10.5.6 messed up my WiFi for the third time this year and I fix it again by replacing the IO80211Family.kext file in //System/Library/Extensions/ folder with a version from 10.5.2 I don't know what exactly happens, but since I nor

  • Move tables to new tablespace

    Hi, I have 2 tablespaces (a) DATA_TBS (b) INDEX_TBS So, i am going to create another DATA_TBS_1 Tablespace..and move the some smaller tables from DATA_TBS to DATAB_TBS_1 Tablespace... All the Tables Indexes are in INDEX_TBS...i am going to move only