ListSelectionEvent is entered twice?

I have two jlists. The first one shows a list of companies in a database, the second one has to show some details about the company selected in the first list.
Thus, the second list has to change dynamically.
I work with a ListSelectionEvent of list1 to change the model in list2.
Now i have two problems:
- the listselection event is entered twice, i see all the details twice in the second list.
- in list2, the data should change, but it just pastes the new data under the existing one. is there a way to remove the previous data first en then insert the new?
My code:
//initializing components
list1.addListSelectionListener(new ListSelectionListener() {
     public void valueChanged(ListSelectionEvent e) {
          list1ValueChanged(e);
private void list1ValueChanged(ListSelectionEvent e) {
          list2.setModel(
                    new AbstractListModel(){
                         List<Meeting> meetings = d.getDesiredMeetings();
                         String[] values = convertToStringArray(d.getDesiredMeetingsOfCompany(list1.getSelectedValue().toString(), meetings).toArray());
                         public int getSize() { return values.length;}
                         public Object getElementAt(int i) { return values; }

while the selection is changed, say, dragging the mouse thru selections, each change fires an event with is-value-adjusting = true. Then final selection sends another event with false.
Personally, I'd like to see a mode that you can prevent the list from firing those intermediary events instead (cut off at the source), but you just check that flag as shown and you'll get what you want.

Similar Messages

  • Can we get error message when a component is entered twice in BOM??

    Hi,
    I have a BOM with around 150 components.
    Can we get an error or warning message when ever a component is entered twice in the component list????
    Thanks for your views.
    Naveen.

    In addition to the above points about enhancement PCSD0005, here is some more information that you may find useful.
    - The enhancement is called when you press enter after inserting a component.
    - The component name is stored in field rc29p-idnrk
    - Your programmer should know if it is possible to transfer this name to a table where it can be retained. Then when you add the next component, the exit can check against the previously inserted components. With a lot of components, you may get performance problems doing this though....
    Exit is called here:
    SAPLCSDI     FORM     MATERIAL_PRUEFEN
    CALL FUNCTION 'EXIT_SAPLCSDI_006'
       call customer-function '006'
            exporting                                          "note 611155
                 i_rc29p  = rc29p                              "note 611155
            importing
                 msg_data = msg_tmp
                 t_msg_data = lt_msg                           "note 942798
            tables
                 mat_bom_allocation = mastb_tmp
            changing

  • Confirmation email entered twice and identical

    On my site, I ask users to input their email address (as a
    username), well for accuracy on emails and help protect against
    spam, I ask them to enter their email address twice. Is there a way
    to prompt the user if for some reason the 2 emails entered are not
    identical?
    Thanks - Matt

    Matt, do a search on javascript compare two form fields, this
    will check
    formfield_A with formfield_B and do what you want to do.
    Good luck,
    Dave
    "mtrueblood" <[email protected]> wrote in
    message
    news:gk5jpg$af1$[email protected]..
    > On my site, I ask users to input their email address (as
    a username), well
    for
    > accuracy on emails and help protect against spam, I ask
    them to enter
    their
    > email address twice. Is there a way to prompt the user
    if for some reason
    the 2
    > emails entered are not identical?
    >
    > Thanks - Matt
    >

  • Condition Type entered twice per item

    Dear SAP Guru's,
    I have an issue. In the sales order discount condition types can be entered manually. I want to restrict the condition type to enter once only, system should not allow to enter the same condition type for more than once (per item). Can anybody through some light on this.
    Thanking you,
    Rajam

    Dear Rajam,
    Do the following:
    1. Mark exclusion indicator for all the tables in access sequence for the discount condition type.
    2. Go to V/06 for discount condition type & there is a field for manual entry, change it to not allowed.
    Regards,
    Ravi

  • FB60, FB65, FB70, etc - Sales Tax Code goes blank when we hit enter twice

    We just implemented some Hot Packs and are encountering the following issue since:
    For transactions FB60, FB65, FB70, etc the Sales Tax code drop down values get wiped off when you press Enter key more than once after filling required entries. Has anyone come across this issue.  See steps below:
    Step 1.
    Execute Transaction FB60 and fill following info also select U1 in the drop down, Note the values in the Tax drop down are there.
    Step 2.
    Now Press enter
    The field u2018INVFO-MWSKZu2019s value (U1) is getting exported here (Include LFDCBI01).
    Note both fields INVFO-MWSKZ and SKB1-MWSKZ values are blank.
    Note sy-subrc becomes u20184u2019 at the IMPORT STATEMENT (Include LFDCBFS0).
    Hence the value for INVF0-MWSKZ is blank.
    SINCE THE VALUE OF THE FIELD INVF0-MWSKZ is blank, the drop down becomes blank.
    Note: This is happening only when we Press Enter.
    Thanks

    After upgrade ecc5.0 to ecc6.0 "INVFO-MWSKZ" field its a dropdown list in fb60,after selected value its not appearing in that i/o field place.
    For the query is there any customization we should check/any sap notes/any help.
    Please do need full.
    Regards
    Mahesh .

  • 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

  • How to enter a conference bridge code?

    I'm switching from Blackberry where I was able to enter a telephone number followed by the conference bridge code and all that I had to do to dial and enter the code was hit enter twice.  It looked like this: 1-999-999-9999, #99999999*.
    Is something similar available on iPhone?
    Thanks.

    Type the number in exactly the same, put a couple comas after the numer for pauses to allow the phone system to answer then enter the access code followed by a #, then press Send.

  • Pricing: Condition type for advance "ZADV" can be enterted twice

    Hello,
    I have defined condition type for advance as ZADV in pricing procedure.
    Issue: Now teh end user is able to enter the advance conditype types "ZADV"  in the sales order, is it any way possible that it should not allow the condition type to be entered twice.
    Regards
    Suvin.S

    HI,
    Issue: Now teh end user is able to enter the advance conditype types "ZADV" in the sales order, is it any way possible that it should not allow the condition type to be entered twice.
    1*.Suppose Condition type ZADV having Condition Class "Discount or Surcharge " system will allow to enter manually second time also*
    2. Suppose Condition Type ZADV is mandatory to few customer and also customers then do the some changes in the condition Type under the Tab "Changes which Can be made " we can find out the Manual Entries fields in that try to mentioned "D      - Not possible to process manually "
    Regards,
    Prasanna
    Edited by: prasanna_sap on Sep 6, 2011 8:35 AM

  • Entered administrator password

    I entered the original administrator password on the first block. Then I accidentally push enter twice and fail to see the warning notice.
    Now the original administrator password does not work.  Can you help?

    User Password Reset

  • Rate from 1-10 Dreamweaver form (validate - no using same # twice)

    Hello,
    I have a customer that wants me to have a list of 10 items with a drop down menu next to each item with the numbers 1 - 10.  They would like their customers to rate the items in this list and they would like to make sure no number is used twice.  How can I do this?

    I've used spry rating for some product page developments and I believe spry's rating observer prevents a user from rating twice in the same pageload, but it doesn't prevent a user from entering the same value to different rating elements in one pageload. For instance: spry will let you rate then prevent you from rating again during the same pageload, but you can't use out-of-box spry rating to have a rating scale of 1-10 for 10 items on one page and use spry rating observer to prevent your rating of 5 for item 1 and rating of 5 for item 2.
    Therefore I don't think it will work for your request that:
    they would like to make sure no number is used twice
    It's not the same as:
    place a widget observer to ensure that a value is not entered twice.
    You'd need some other javascript method to develop this feature.

  • Problem with type ahead, maybe known as keyboard buffer or keyboard buffering

    Hi, I'm new to Lightroom and am halfway through Martin Evening's excellent book, but there's a problem I have which I can't find an answer to anywhere so far.
    I work on an older PC that has three screens.  My problem is if I have LR on one screen and type into an application in another screen, or rather think I'm typing into the other application but actually the LR screen is still active, then LR basically goes nuts as it attempts to carry out what is in effect a random series of keyboard shortcuts.  I have to wait for LR to finish jumping about and then so a long series of undo's and hope that one of the shortcuts wasn't a delete.
    It's occurred to me within LR when I've been typing into the keywords box and predded Enter twice by mistake to confirm an auto complete suggestion by LR and so subsequently exited the keywords box causing LR to interpret all my following keyword letters as commands.
    Is there any way to change this? To my mind there shouldn't be any need for LR to read from the keyboard buffer at all.  Is there any way to turn off keyboard shortcuts either all of them or selectively?

    Biganon,
    If you are willing to experiment, you could try the following simple xorg.conf:
    Section "Device"
    Identifier "Configured Video Device"
    Driver "nvidia"
    EndSection
    Section "Screen"
    Identifier "Default Screen"
    Device "Configured Video Device"
    DefaultDepth 24
    EndSection
    This minimal xorg.conf is only needed because xorg must be told to use the nvidia drivers.
    It should figure everything else by itself.
    For the Keyboard and mouse handling, install xf86-input-evdev, if not already there.
    Start hal from the daemons Line in /etc/rc.conf:
    DAEMONS=(syslog-ng network netfs !dbus hal ....
    For the Keyboard layout, copy the file:
    /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi
    to
    /etc/hal/fdi/policy/10-keymap.fdi
    and edit this copy as follows:
    <merge key="input.xkb.layout" type="string">ch</merge>
    <merge key="input.xkb.variant" type="string">fr</merge>
    I don't particularly appreciate this fdi thing, but, from experience, letting a particular
    Desktop/Window Manager manage the keyboard layout is even worse.
    Further info at:
    http://wiki.archlinux.org/index.php/Xor … otplugging
    Needless to say, if you try this, backup your original xorg.conf.
    Mektub

  • Cancelling Material Receipts generated from approved Service Entry Sheets

    Several service entry sheets were entered twice into SAP and approved for Vendor .  Upon approval, material receipt documents were created and because the vendor is ERS, invoices were created and paid.  Manual credit memos have been processed in AP so the vendor has been charged back but the GR/IR GL account won't clear without the material receipt reversals. 
    To properly credit the job and debit the GR/IR GL account for this duplication, reversing material receipt documents need to be created. Anybody knows how to do the correction?
    please advise.

    Hi,
    Please follow the below steps.
    01. First Cancel the Invoice
    02. GO ML81N and in change mode you will get rewoke service entry sheet, a      pop will come for posting dates enter the posting dates. and save . It will change the reverse the GR document created through Service entry. Set deletion indicator if you want.
    Thanks & Regards,
    Sridhar

  • Comparing multiple dimensions on same cube

    I have a cube with 2 dimensions: date and part#. The request is to be able to enter 2 different dates and then compare the related part data from date1 with its corresponding fields from date2.
    Is this possible? I am thinking of creating a multi-provider with the same cube entered twice. The query would then prompt for 2 dates. Input date1 would go against the first appearance of the cube and input date2 against the second appearance.
    Any thoughts? I am just trying to write a spec right now.
    Bob

    Hi Bob,
    I really doubt if you can define the infoprovider twice in a Multiprovider. You may want to bring the date twice as date1 and date2 into the cube. i.e., create two chars date1 and date2 and map the original date to these two in update rules of the cube.
    Hope this helps.
    Kumar

  • Small square boxes appearing on blank lines (UPDATED) - The question is, how to get rid of them?

    *******  As to my display name "All I tried were in use" - when I registered at the Adobe site to use the Browser Lab, I tried something like 10 or 12 user names and finally gave up and went with "All I tried were in use" - my name is Bob
    ------------------------------- UPDATE --------------------
    The problem, small square boxes showing on lines in Freetext Tool comments, is not limited to blank lines, as I originally reported here. These boxes are showing up at the end of every line. It does not matter if the line break is hard or soft, whether the line is empty or not.
    Please read the original post bearing mind that the  problem is occurring at the end of all lines.
    Also - here is a screen capture of a part of one comment box, showing the square lines. I didn't show the entire box because the material above the area I'm showing is a tad private or confidential. Here is the image showing the boxes - note that there is no box at the end of the last line in the comment.
    -------- Original Post ------------
    We have a copy of Acrobat 5.0. and up until now it has done what we need, which is not much more than adding bookmarks, links, and some touch up. I know it is very old and I know things change. I'm hoping this has nothing to do with the release we are using. I would think this would be a backward compatibility issue if it is a problem with newer Reader versions dealing with PDFs "edited" with 5.0.
    I am having small square boxes showing up on blank lines. (read my update above  - the boxes are at the end of all lines, soft break or hard break))
    I'm a programmer (37+ years in most all aspects of Data Processing) and I decided to learn the PHP programming "language" to add some server side processing to some of my web sites. So, I found a fairly good manual on PHP in PDF form and have been using it.
    I quickly found that the PDF didn't have a single link in it and no bookmarks, so I've been adding them as I look up a particular subject. I'm also adding comments and notes to document things not in the original manual or to add comments that would help other programmers` (who know  other languages) to adjust to PHPs' way of thinking - for example: in all the other languages I know (perhaps two dozen) to get rid of a file, you "delete" it. In PHP you "unlink" it.
    I've added a lot of comments and notes like that and when I view the PDF in Reader (on this computer I have 9.4.2) I'm seeing small square boxes on empty lines. The lines were created when I pressed Enter twice to insert a blank line between paragraphs. (again, read the update at the top of this message - the boxes are at the end of all lines, soft break or hard break)
    How can I get rid of them?
    They are not present when I've got the PDF open with Acrobat, only when I'm using an Acrobat Reader.
    They are also not present if I look at the comments using the Comments navigation panel - that is, they still show on the page, but they don't show in the copy of the comment displayed in the navigation panel.
    They are not present in Notes or when I use one of the shape tools (Square Tool, Circle Tool, or Line Tool) to create notes. They are only present in Freetext Tool comments
    They are clearly being show where there are successive line feed/carriage return characters - but how do I get rid of them?
    I JUST THOUGHT OF SOMETHING - I realized that I'd not printed any of the pages on which I have placed comments and wondered if the boxes show when printing the PDF with Reader -- they do. They are not present if I use Acrobat, not a Reader, to print the same page.
    Any assistance you can provide will be greatly appreciated.
    Please don't tell me to get a newer version - an expenditure like that is simply and totally out of the picture. For us, this is a Depression, not a Recession - we are self-employed and our businesses have been severely hammered since 2006 - we are down to about 1/4 of our income before the big guys trashed the economy.
    Bob
    P.S. Do you know that you can have a heart attack without chest pain, shortness of breath, or left arm  pain? Well, you can! I've had two and the first one nearly killed me because I had no clue it was a heart attack. You can read about it first one here.  Pass this on, it could save a life.
    My second heart attack occurred on October 4, 20112 - it began, around 3:15 AM, as the first one did, with a headache. It turned out the stent implanted in 2002 had been completely clogged by too much tissue grown. The doctor put another stent inside the first one.

    Problem Resolved - it is a font issue. Apparently Acrobat can't handle particular fonts and it is best to stick with a very small slection of fonts - Arial, Helvetica, Times Roman.
    I haven't test a lot of fonts. If I do, I'll post there results here.
    Bob

  • Outlook/iPhone Multiple calendar sync

    Hi
    I have a work calendar in Outlook, driven from Exchange and a second personal calendar containing things that don't apply to work (birthdays, social events and so on). While both calendars appear in Outlook, I can't get the personal calendar to sync with the iPhone at all. In iTunes, the Exchange calendar appears but not the personal calendar.
    How do I sync with the iPhone (its my first iPhone - a 3GS so I think I'm running the latest OS etc) so I get both calendars on view?
    Thanks in advance.
    Cheers
    Mike

    I have both a .mac account and an outlook account. My .mac acct is used for my personal entries and syncs with my iphone as well as my mac computers at home. My outlook calendar syncs my work items from my pc at work to my iphone. My problem is everything syncs to my iphone, but outlook won't sync to my .mac and .mac won't sync to outlook. This causes me to have multiple entries on my phone because I will enter something on my .mac calendar, but, because it doesn't show up on outlook, I then add it to my outlook calendar and then i have the same entry entered twice on my iphone. What a pain in the butt. Is there an end run around this?

Maybe you are looking for

  • No XML output for a report Oracle 11.5.10.2 RDBMS 10.2.0.5.0

    I created a very simple rdf and ran it without problems. I then generated an .xml file and loaded this into into the template builder using xml publisher. I created the rtf and using xml Publisher administrator created a template and data definition

  • External hard drive, restore problem! Files are gone...?

    All the files are gone... but the folders are still there. Here is what happened: Step 1 I restored everything from main HD (two disk striped RAID) to external hard disk (Western Digital MyBook 1TB ). The external disk was mac formated (Mac OS Extend

  • Forms(SAP-ABAP)

    Hi Friends,     I have a form and driver program.the driver program is available in se38(which is a module pool program) .     But the FORM doesnot exist in either tcode - se71(Script form) and SMARTFORMS.     I think it would be ADOBE FORM, Is there

  • What files need to be saved before a change of HDD?

    Hi all, I'm about to change my HDD in my MB pro due to a disk problem. I'm wondering what files do I save?  Do I just need to save my those in my ''User'' area?  Or do I need to save more than this? Thanks

  • How do I stop/cancel a movie download?

    I accidentally clicked rent when I really want to buy the movie. I'm doing it all on my ipad.