How do I properly bind and observe a List?

I'm trying to bind a List to JList, but I'm having problems figuring out how to add or remove items from either object as the other object doesn't seem to update.
Here is what I've bound to JList to:
public class ExportInfo {
public List getMyList() {
    return this.myList();
}Here is the binding:
ELProperty eLProperty = ELProperty.create("${myList}");
JListBinding jListBinding = SwingBindings.createJListBinding(AutoBinding.UpdateStrategy.READ_WRITE, exportInfo, eLProperty, myList);Now if I remove object from the List myList, the JList does not update immediately. I know I have to do something with the observer pattern, I'm just not sure how to implement it. Thanks to anyone who helps! :)

I figured it out:
First wrap the List:
ObservableList list = ObservableCollections.observableList(myList);Then make sure to do all add/deletes with that new ObservableList.

Similar Messages

  • We have had a request to purchase Livecycle ES4. I am trying to find out how much this will cost and get a list of requirements needed to install and run this product,

    Looking to find out what the infrastructure requirements are for this product and how it needs to be administered by our IT shop. Thanks

    Complain to the Attorney General about what? There is nothing in your story worth any such complaint. They will tell you the same.
    First you have payment difficulty so credit and the Edge program are not available to you. You have to be credit worthy to get any upgrade, unless you can pay full price for all those new devices.
    Can you?
    You are trying to get new contract plans, but since you are having paying on time and in full issues you will not get extended credit from any carrier.
    What I would do is go and port out to Boost or Virgin Mobile where you pay a reduced cost for each device and get unlimited everything for $40 to $50 a month, it is pre pay so if you don't pay you get cut off.
    Verizon although with the best coverage is also the highest priced.
    Good Luck

  • How to create Global password and user information list in Linux

    Hi ,
    OS is : OEL, We have some requirement, we need to create global password and Users information, that location sould be accessable to all users, can any one guide me how to do it in Linux.

    Could you give us a little more details? Are u looking for something like a centralized authentication system? or....what exactly?
    kido

  • Java Printing Service (JPS) How to get printer status and pending jobs list

    Hi,
    I am trying to determine what is the current status of a printer in my computer as well as what is the list of pending printing jobs at any moment.
    I want to monitor activity on a printer in my computer, so I can capture and log the jobs that are sent to my printer over time.
    I would like to do so by monitoring the printer pending jobs list (if that can be retrieved through any java method) and make a log of changes in that list.
    Any advice on how to get the list of pending jobs of a printer?
    I checked the API and JobState class seems to be a descriptor of one single job... I suppose the method to retrieve a list of pending jobs in a printer would return an array of JobState objects... but I have not being able to find yet such method...
    Thanks in advance,
    JN

    Moderator Action:
    This post has been moved from the Java Programming,
    to the ADF forum, for closer topic alignment.
    *... and Comment:*
    Get help from people that work with ADF.
    They may have already done something like this.

  • How to loop through dates and return a list of dates?

    hi,
    thank you all for your help my all my oracle endaevors so far:)
    I was going through PL/SQL Programming book by Oracle Press, but overall wasnt able to find the answer for the following.
    I have a list of shops, simple: shop_name (table), date_holiday (table) that lets me keep dates that certain shop is closed.
    example: shopID = 10
    shopID 10
    date_holiday 12/31/2009
    shopID 10
    date_holiday 1/1/2009
    now, what I am trying to achieve is I am trying to get the list of days (formatted as MM/DD/YYYY, but thats not biggy) starting today and ending up in 3 months from now that will EXCLUDE all the holidays, example
    select date_open ...... where shopID = 10;
    [starting today]
    12/29/2009
    12/30/2009
    1/2/2010
    1/3/2010
    [ending 3 months from today]
    any simple ways or ideas that may help?
    thank you!

    somehow like this
    select :the_shop shopid,the_day date_open
      from (select the_day,date_holiday
              from (select trunc(sysdate) + level the_day
                      from dual
                    connect by level <= add_months(trunc(sysdate),3) - trunc(sysdate)
                   ) d,
                   (select date_holiday
                      from holday_table
                     where shopid = :the_shop
                   ) h
             where the_date = date_holiday(+)
           (select nvl2(location_open1,'open,','mon,')||
                   nvl2(location_open2,'open,','tue,')||
                   nvl2(location_open3,'open,','wed,')||
                   nvl2(location_open4,'open,','thu,')||
                   nvl2(location_open5,'open,','fri,')||
                   nvl2(location_open6,'open,','sat,')||
                   nvl2(location_open7,'open,','sun') location_not_open
              from locations
             where locationid = (select shopid
                                   from shops
                                  where shopid = :the_shop
    where instr(location_not_open,to_char(the_day,'dy')) = 0
        or date_holiday is nullRegards
    Etbin

  • As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know each Java Class that is involved in flow.

    As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know how flows goes to the server and server understands the method which is to be called of managed bean. I know it is with annotation @ManagedBean and method name, but how Call is binded with annotation @ManagedBean.
    In short, i want to know the internal implementation of JSF Framework.

    As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know how flows goes to the server and server understands the method which is to be called of managed bean. I know it is with annotation @ManagedBean and method name, but how Call is binded with annotation @ManagedBean.
    In short, i want to know the internal implementation of JSF Framework.

  • I downloads the latest iTunes software update and it properly installed.  But,  I cannot close the window showing it was completed and the blue completion bar is full but cannot cancel or close it either.  Any ideas on how to clear that out and close the

    I downloaded the latest iTunes software update and it properly installed.  But,  I cannot close the update window showing it was completed and the blue completion bar is full but cannot cancel or close it either.  Any ideas on how to clear that out and close the window.  Tried to quit on both the big window and the software update title in the menu bar.  No luck.

    Tried that by shutting down via the power button only as the normal shutdown was nixed by the open window issue.  It did not help.  Found a very similar question in the discussions and it recommended "Force Quit".  That worked and the update works normal and the window is gone.  Thanks!

  • Cursor arrow gone from solid black to having white lines go through it and trackpad is not working properly in mail and adobe acrobat - anyone know how this could have happened and how to solve it?

    Can anyone help me?  Concerned that I may have some kind of malware.  My cursor arrow and trackpad are behaving strangely,  The cursor used to be a solid black arrow but now seems to have horizontal white lines running through it.  The trackpad does not function normally either.  For example, when I use my trackpad to scroll up and down in mail  it sometimes works and sometimes does not.  In adobe acrobat it sometimes does not work.  In facebook, the cursor does not line up behind the menu keys as it should.
    Any one know how this might have happened and how I can stop it?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • TS3297 I downloaded a song but it did not download properly and only the first 5 seconds of the song plays.  How do you fix this and get the entire song downloaded?

    I purchased a song and when downloading there was an error.  No error on the other 8 songs just one and now only plays the first 5 seconds of the song.  How do you fix this and do the download again so the entire song is downloaded?  Thanks!

    Delete the song from your library and re-download it from the Purchases section of the iTunes Store.
    http://support.apple.com/kb/PH12491

  • How do I properly archive or save projects so they could be used in the future

    Help would be greatly appreciated
    How do I properly archive or save projects so they could be used in the future, but yet delete or trash the events folder they came from, to clear hard drive space

    Hi to all of you Seniors and one junior [i.e. the the OP who started this thread]. I feel that this thread is a very vital subject relevant to practical and economical 'creativity oriented videography'!!!
    As a newcomer I always have tried to have a grasp over this matter and the insecurity of 'incomplete knowledge' has been a constant mental niggle.
    May I tell you that I have been struggling to 'hear' what I am now 'hearing' in this present discussion for over the past 10 months and have not been able to!!!
    I shout out a million cheers to all the participants, OP included, involved in this thread.
    May I request that this discussion be not allowed to die down but be used as a guidepost for all folks, especially those whose primary work is videography? By the time the this thread comes to an end, every reader should be able to make an 'informed and learned' decision of how to economically and safely preserve his work.
    Salty's observation regarding opting for SD looks attractive just because of the lack of a suitable [read economical] means of having your work in HD...but, if in the coming days, were there to be any pathbreaking discoveries in terms of data storage, and hugh capacity drives are available at 'throwaway prices' would we not for the rest of our lives regret having done our works in SD?
    Appleman's foray into this common problem, as to how it should be tackled, needs to be greatly lauded. Tom Wolsky's precise observations which obviate the need to check out and painfully realize some of the errors in Appleman's hypothesis neccessitate that the laurels, as usual, be handed over to him.
    Now having said what I felt after reading through this thread, I would like these clarifications:
    1] what is meant by having a backup of 'currentevent.fcpevent.'? How do we go about it. Where are we to store it? After doing this 'backup' can the 'currentevent.fcpevent.' file be deleted from the event folder?
    2] Some word of enlightenment regarding the meaning and usage of 'event metadata '...i.e. say after 3 years of having the 'projected related event data' in cold storage, were one have the need to put his project back again on to the timeline for further editing...what are the exact steps which one should take?
    DR.SOMANNA

  • How can I make a weekly 'to do' list?  I don't want the list associated with a particular date and time; just a list of things to get done!

    How can I make a weekly 'to do' list? I don't want it associated with a particular day or or time, just the week, preferably with the ability to check off or remove when done.

    Thank you for the excellent reference Peddi. I had played with the OAMessageChoiceBean component yesterday, but I was able to tell from your instructions that "Picklist Display Attribute" and "Picklist Value Attribute" really are not for binding to the database EO. That was the key piece of information that had me confused.
    In addition to adding the messageChoice component to the page, I needed to write some code to synchronize the picklist value with the corresponding code value, which I placed in am OAFormValueBean (hidden form field) which I could then bind to my application's database EO in the controller, running in the processFormRequest procedure:
    /** Synchronize the catalog code with the selected catalog name */
    protected void syncCatalogValues(OAPageContext pageContext,
    OAWebBean webBean, MyApplicationAMImpl am) {   
    OAMessageChoiceBean mcb =
    (OAMessageChoiceBean) webBean.findChildRecursive("CatalogName");
    OAFormValueBean cc =
    (OAFormValueBean) webBean.findChildRecursive("CatalogCode");
    String catalogDescription = mcb.getText(pageContext);
    if (catalogDescription != null) {
    String catalogCode = am.getCatalogCode(catalogDescription);
    cc.setValue(pageContext, catalogCode);
    Along with a little code to get the catalogCode value from the LOVVO, that's all it took.
    Thanks again. This was a great help.
    Pete

  • How do I properly zero out or erase the hard drives in my early 2009 Mac Pro 4,1 tower?

    How do I properly zero out or erase the hard drives in my early 2009 Mac Pro 4,1 tower?
    I assume there are already instructions on Apple.com someplace but haven't seen them yet… I have to one terabyte drives one the operating system the other is blank I want to start fresh I want to zero out both drives but I didn't want to make any mistakes
    I know I can use disk utility to 0 Out Dr., #2 that means I will have to take out the operating system hard drive out of my 2008 Mac Pro and put it into my 2009 Mac Pro to use the disk utility to zero out drive one the OS drive in my 2009 Mac Pro am my correct
    I just need a little bit a help I want to go slow so I don't make any mistakes with the sleds or with the erasing process which journaled to choose encrypted or not etc. etc.
    Furthermore is there instructions on the site on how to change the hard drive into a different sled because the sleds and my 2009 are different than my 2008 any advice
    Thank you

    I'm doing this because my friend told me that zeroing out the drive can nap bad sectors and also later for some kind of diagnostics usage of the drive or something like that he wasn't really clear
    My friend was really specific he said choose the option that writes zero's once over the drive that is plenty good enough I was inclined to use the maximum seven write ...I just want to make sure the drive has no bad sectors and that's it's it's zeroed out for possible future diagnostics usage or something that he said was usable later
    he also advised me to run a test on it but I don't have the software you mentioned or the software that he has… So I may have to take the drives over to his house unless you have some kind of free software that's easy to use that you could suggest that will not only zero out the drive but test the drive completely
    I am completely new to Mac I'm no dummy but at the same time I'm not super technically capable I mean I can surprise myself I'm pretty good but I need a good teacher… How expensive is this lifeguard software?
    Thank you

  • I bought a gift card, but it hasn't shown up in my e-mail after 1 hour.  How can I find it and get the credit on my account?

    I bought an iTune gift card for myself and sent it to my e-mail address.  I have waited over an hour and the e-mail showing the gift card has not arrived.  How do I find it and get the credit put into my iTunes account so that I can buy some music?

    Oh hold on - sudden development!
    I panicked and force-shut down my computer because it froze after I clicked on the 'Reset Cache' option, then I logged back on and noticed the Cloud symbol next to the missing song. I clicked it, and it's finally downloaded properly! <3
    Mate, thank you so much for helping me out! xxx

  • How do i properly erase an iphoto folder?

    unfortunately (and ironically), in my paranoia to not lose any photos, i've imported similar photos several times into iphoto. i then used iphoto diet, but it does strange things sometimes - in my experience, it doesn't always remove the proper duplicate (but the thumbnail), etc. so i've resorted to manually sorting each of 15K (ouch!) photos to remove the correct duplicate. i do this by sorting through the photos for different years. i've started working on 2004, and wanted to start with a clean slate and erase all the photos, then only import the orinigals i want, but iphoto 'residually' shows the saved thumbnails (i think they're thumbnails b/c they are only about 16kb, and don't open to full size - i get the 'white screen' that others have mentioned). i entered the iphoto folder (i know - a no no, but didn't know how else to erase 2004 photos) and deleted the 2004 folder.
    sorry for being so wordy - can you suggest a way to eliminate my 2004 photos in a way that would be iphoto-friendly ?
    thanks for any suggestions.
    -vince

    There are several ways to erase photos, slideshows and albuns from iPhoto.
    First of all, to make you more feel secure all you photos are actually in your iPhoto library- that means they have been copied to you pictures folder. Whatever you do with them, the originals are kept. I mean, if you have one photo in a certain album and if you erase it from that album, the original is kept in the Library and pictures folder. All iPhoto does is like an alias to the Library, so it is perfectly safe to erase an album or slideshow in iPhoto, since the real photos are in the Library, and the most real ones are still kept in the pictures folder on the finder.
    ..."how do i properly erase an iphoto folder?"- select it and press "delete" or on the "edit" menu--> "erase/delete/cut"... again... don't worry about the content of this folder/album, because they will remain either on the iPhoto Library and pictures folder on the Finder.
    Sorry to be so confusing...
    Hope I've been helpfull.
    Kisses from Portugal
    CV

  • How can I toggle back and forth from a main pdf to its attachments?

    I have a main document that I created in word and inserted hypertext to either link to 1) websites 2) a series of appendices, 3) 6 large format pdf maps or 3) a series of reference documents.
    In Word, I have everything in a thumbdrive directory with the main file and three folders holding the individual files of the maps, appendices and references. All the links work but the file can't be copied to another drive without redoing all the links to the files (there are about 40 files all together).
    I saved the word main document as a pdf. All the auxiliary files are also pdfs. All the weblinks came through in the pdf of the main document but the links to files need to be re-established.
    1. I tried to create an acrobat portfolio with the main file and the folders of maps, references and appendices but I can't seem to make links in the main document to open up specific files in the folders.
    2. I compiled all the files together into a binder and tried to use bookmarks to link the main part of the document to the first page of the 40 supporting files but at 700 pages the document is just too cumbersome to recreate the ~100 bookmarks I would need to add.
    3. I tried adding everything as attachments and created links but once the link is activated from the main document and the new window opens, the main document has closed up. I need the reader to be able to toggle back and forth between the screen with the main document and the supporting documents.
    What I am trying to create is one main document with links to the maps, appendices and references that will open a new window when each link is activated. Then the new window can be closed and the reader is back at the screen of the main document on the page with the link they just used.
    This doesn't seem to me like it should be difficult since it almost works in Word except for the file structure.
    I would really appreciate any guidance on how to make this work. The document and supporting files have already taken more than a year to put together and I'm stuck at this last step.

    I think that the number of clicks to open a file is a rather shortsighted way to compare two operating systems.<<</div>
    Well excuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuse ME!
    I happen to think it's a pain to click twice on files when I'm used to clicking just once.
    But Tiger is a nice operating system. I enjoy that it has much more capabilities than the OS9. I mean, Tiger keeps up with the advancing internet. My beef is really against OS9. I can open OS9 in Tiger but not Tiger in OS9.

Maybe you are looking for

  • Get('XML') doesn't work, but get() does in javascript - CASCADING LOVs

    I'm trying to get cascading LOVs working in Apex 3.1.0 in Oracle 11g. When I call get.get('XML') it returns null in firefox and empty string in IE6. If I change it to call get.get() then it returns the XML as a string into Javascript. The Application

  • Adobe Standard 9 software

    i have the adobe standard 9 software - purchased it in a store.  I changed PC's and need to install the software on my new computer but don't have the CD anymore, although i have the serial number. How do i get the software installed on my PC?

  • Active dataguard internals

    Hi All, Can any one provide me a link or tell me, which is the underlying technology on which the active dataguard works? I mean the details functioning of how active dataguard lets us put the database in read only mode and also keeps the standby dat

  • Rejected material sent back to Sub-contractor.

    Friends, Scenario. Finished Goods : X Components: X1 and X2 Received X from subcontractor After assembly. 101 Mvt for X 543 Mvt for X1 and X2 X is recived in Quality stock and put them in blocked stock and later rejected and sent back to Subcontracti

  • MATERIAL ON ALE IDOCS

    HI CAN ANYONE GIVE ME THE MATERIAL ON ALE IDOCS......NOT JUST THE BASIC MATERIAL........I WAANT THE IN DEPTH MATERIAL...........THANKS.