Does anybody have a TableView example where a controller fills data into?

I'm looking for an example about initially filling data on application start up into a TableView defined in FXML. I do not understand how to bind the table in the FXML with the data I have got to provide in the controller class. Do I have to use the CellValueFactories and create new Callbacks? Can anybody please provide some sample code in order to enlighten me? Thank you very much.
Edited by: mwalter on 26.03.2012 12:25

This post blog post has examples of FXML with a List and Controllers: http://www.zenjava.com/2011/12/11/javafx-and-mvp-a-smorgasbord-of-design-patterns/
The usage for Table is quite similar.
In particular check out 'Option 4' and this class:
http://code.google.com/p/jfxee/source/browse/trunk/first-contact/first-contact-mvp-fxml/src/main/java/com/zenjava/firstcontact/gui/search/ContactSearchPresenter.java
If you need more info, post back some more questions here on the specific areas you are struggling with. Ideally include some example code of what you've managed to achieve so we can add the missing bits.
Cheers,
zonski

Similar Messages

  • Safari keeps shutting down on my iPad very often. Does anybody have information about this problem? Thanks

    Safari as well as other apps like USA Today and BBC, shut down very often in my iPad. I have experienced this problem before, but now it happens all the time. I can hardly have a full web surfing session without this annoying interruption.
    When I restart the app I usually get to the page I was reading so I don't understand what's going on.
    Does anybody have information about this issue? Any suggestions or solutions?
    Thanks

    Rick --
    Safari has never needed Rosetta to run.
    It fact, it makes it run agonizingly slow --
    or could cause it to crash. That's probably your problem.
    I you really need Rosetta to work with this app, your Math program is using really old technology,
    and was built to run on OS9, or even OS8.
    Example: Many of us used to use PageMaker for designing brochures.
    When Macs went to 10.2.8 or so, PageMaker couldn't run, so Apple included
    a faux environment on newer Macs, where old apps & games would run.
    That was about 5 or more years ago. The need for Rosetta is very very rare,
    as most all apps used today would be newer than 5 years old.
    Like Mulder said, a crash report might help identify the exact culprit.
    EDIT: Have you tried turning Rosetta off???? Just to test it??
    Message was edited by: ~Bee
    Message was edited by: ~Bee

  • Does anybody have a sample implementation of UserReaderMBean?

    Does anybody have a sample implementation of UserReaderMBean?
    It would be greatly appreciated

    You should start with the sample security providers available from dev2dev.
    In general, with the security sspi, you don't implement the mbeans directly - you write a provider class which contains the same method signatures as the mbeans, run that through the mbeanmaker, and that generates mbeans which delegate to your provider.
    Regarding the cursor, see http://e-docs.bea.com/wls/docs81/javadocs/weblogic/management/utils/ListerMBean.html
    Nobody says anything on what the cursor "should look like" - that's up to the implementor to decide. The motivation behind the cursor is that the list of users can be arbitrarily large and may not fit inside of memory. Therefore, the security provider needs to read in chunks of users at a time, and needs to have a way to refer to this list. Iterator pattern.
    Take, for example, 100K users stored in a db. Can't read them all into memory. Can read in chunks of 1K users in arrays, and use the cursor to contain the index into the array, and the name of the last user in the array. E.g, to start things off,
    select USER from USERS where ROWNUM < 1000
    and then, when you finish the first 1000 users off, do
    select USER from USERS where USER > ? and ROWNUM < 1000
    the ? in this case would be the name of the last user read off in the previous query.

  • Does anybody have PeopleTools 8.48 CD ?

    Dear friends,
    Hello. Because the memory of my computer can accept only Weblogic 8.1 and Tuxedo 8.1, I have to use PeopleTools 8.48 version, but 8.48 version is not in Oracle edelivery site any more. Does anybody have PeopleTools 8.48 CD or any place to download ? Please let me know. Thanks.
    Lucy

    I'm not sure if PT8.48 will help, and I don't know where you can find the PT8.48.
    Anyway, please, read my last answer to your original thread :
    Re: The correct procedure to install PeopleTools 8.49
    Nicolas.

  • Does anybody have experience to work with jsapi in midlet?

    Hi every body
    I want to write a java midlet for mobile phone with ability of speech recogntion ,can I use jsapi2 ?
    does anybody have experience with jspi in j2me?

    Hello,
    see the attached example I use for a PCI-7344.
    You must just know that these AO have an offset: If you set "0" as input, you will perhaps have between -150..+150mV at the AO. This can be annoying depending what you do with it. However, this offset doesn't vary over the time.
    In the attached VI, you can give this offset one time for ever.
    Hope this help.
    Attachments:
    AO_Motion.vi ‏51 KB

  • HT1726 i have heard that charging less than 80 percent will make the battery lasts longer, does anybody have any idea about that?

    hi,
    i have heard that charging less than 80 percent will make the battery lasts longer, does anybody have any idea about that to help me?

    I don't know where you heard that statement but it's completely incorrect.
    According to Apple:
    Use Your iPad Regularly
    For proper reporting of the battery’s state of charge, be sure to go through at least one charge cycle per month (charging the battery to 100% and then completely running it down).
    Elsewhere, Apple elaborates and explains that two half-discharges (or four quarter-discharges, etc.) equals one full discharge.

  • I have an Macbook with OS 10.6.8 using Itunes 10.4.1 to sync my Iphone4. The itunes just do not sync my contacts ... No error messages .... nothing ... just do not work ... Does anybody have a clue what is going on ? tks

    I have a Macbook with OS 10.6.8 using Itunes 10.4.1 to sync my Iphone4. The itunes do not sync my contacts ... No error messages .... nothing ... just do not work ... However, It is working for apps, calendar and email. Does anybody have a clue what is going on ? tks

    There is also an option to reset all data on the device with the next sync.
    MJ

  • Does anybody have a perfect new 15 inch 2.0ghz Macbook Pro

    I had to exchange 3 MBP's over the past month due to Kernel panics. Does anybody have a new MBP (Week 20, 21, 22 or 23) which has not had a single kernel panic.
    If you have one, how hot does your machine get and do you have any whine?
    15' MBP WEEK   Mac OS X (10.4.6)  

    The Heat issue is bearable, but the whine is not.
    The quality is a big issue for apple products now even though they have good customer service.
    Unless they improve the qualities of their products, they will face an exodus to a company who produce better models. The quality control is one big issue for Apple enthusiasts!
    The production system in China will not help Apple make more money unless they come up with quality products.
    MacBoook Pro   Mac OS X (10.4.6)   iMac

  • The button on the side that turns my phone to silent does not work and niether does the up volume button.  I have tried restarting my phone, I did a soft reset, I checked all my settings, but nothing has worked.  Does anybody have any suggestions?

    Hello,
    I have an iPhone 4 and recently started to have some problems.  First, the button on the side of my phone, that puts the phone on silent is not working. I can move the switch, but my phone stays in silent. However, If I plug my headphones in, Then I can hear everything like I am supposed too.   Also, my up volume button does not work.  This is with the headphones also. 
    I have tried doing a soft reset, I reset all of my settings, I updated my software, I restored everything back to factory settings, and nothing has fixed it.  I bought it from best buy and can send it in for service, but the last time I sent a phone in, it took them 3 months!  and I really don't want to go without my phone that long. 
    Does anybody have any suggestions? 
    Thanks so much!!

    Sounds like it either believes that there are headphones plugged in, or the switch is broken.
    Why in the world would you take it to Best Buy for service? Take it to an Apple Store. They can replace it on the spot if it's defective.

  • Does anybody have any advice about updating your book description once the book is live?

    I made a careless spelling mistake while filling out the metadata for my children’s ebook. Obviously I quickly changed it and resubmitted my “package”. That was four days ago and the spelling mistake is still there in the book description for all the world to see. Does anybody have any suggestions on how to push this through? It really should only be a 30 second fix yet has turned into a complete nightmare. Please help. Thanks.

    The description is one of the metadata fields that you cannot update yourself. You need to contact Apple and ask them to make the change for you. Quote the title, Apple ID, and ISBN of the book, and added description of the exact change needed, or complete replacement text for the description.
    Michi.

  • The battery for my macbook pro 13 says "service battery".  Now I want to get a replacement but the reviews for it are horrible! Does anybody have any suggestions?

    The battery for my macbook pro 13 says "service battery".  Now I want to get a replacement but the reviews for it are horrible! Does anybody have any suggestions? I don't want to spend 130 dollars on something I'm going to have to replace in less than a year (which is what normally I been reading)  I do design work and I take my mac everywhere.  Having to always look for a plug or having to be constantly plugged in doesn't sound ideal to me.  Please help me. what should I do???

    Why does it matter if it a scam????? I'll let you figure that out by yourself.  If I'm going to replace it, why should I be contempt with a battery that I have to replace within months (as stated by some people in the comments). The issue here is not if I should or not replace it OBVIOUSLY I'm going to have to before it starts going crazy.  The underlying issue is why is the replacement battery for a lack of better words " a bit crap."  It comes with a 3 month guarantee?? Is that a joke?!??!?! Some people complained it malfunction after only 8- 9 months? I'm sorry but as an Apple fan I think it's absolutely rubbish. I know there is no magic cure I'm just hoping someone shines the light on how crappy this replacement is.

  • I just received a new macbook pro. I am looking for a usb3 external storage 500 GB drive.  Some manufacturers of drives aren't for sure their drive will work with the new lion system. Does anybody have any suggestions for drives that will workw

    I just received a new macbook pro. I am looking for a usb3 external storage 500 GB drive.  Some manufacturers of drives aren't for sure their drive will work with the new  system. Does anybody have any suggestions for drives that will workw

    There seems to be a problem, just now, with the USB 3 ports on the new MBP's supporting eternal USB 3 drives. Some people have no luck at all - can't even recognize the drive - and some are reporting USB 2 speeds (those who drives are recognized). I'd call a dealer such as LaCie or OWC to see if they have USB 3 drives that actually work with MBP's with USB 3 ports. You may have to wait for a software/firmware update.
    Clinton

  • Ipad2 plus ipad air all of a sudden instantly goes back to home screen.doesnt matter what app i am using just when it decides to do it it does.apple tech has no answer or fix for me does anybody have any idea what is wrong

    ipad2 plus ipad air all of a sudden instantly goes back to home screen.doesnt matter what app i am using just when it decides to do it it does.apple tech has no answer or fix for me does anybody have any idea what is wrong

    First thing to try is to reset your device. Press and hold the Home and Sleep buttons simultaneously until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.
    Could also be not enough free space for the iPad to operate efficiently. With iOS 7 it is recommended that you have 15-20% of the storage space on the device free.  For a 16 GB device that is 2.4-3.2 GB free. For a 32 GB device that is 4.8-6.4 GB free. For a 64 GB device that is 9.6-12.8 GB free.
    If neither of these suggestions helps, Make an appointment at an Apple Store to have your device examined by a technician. Or contact Apple Support.

  • Graphic card problem maybe? Since when I have changed the hard drive to my macbook pro and I installed all the new softwares, my mac is very slow and the screen gives crazy pictures,could maybe be the graphic card, does anybody have experienced this?

    Graphic card problem maybe? Since when I have changed the hard drive to my macbook pro and I installed all the new softwares, my mac is very slow and the screen gives crazy pictures,could maybe be the graphic card, does anybody have experienced this?

    after a restart it works for a time, but always slow. I went to the Applestore this afternoon and the made a check and said it would be the logicboard and they would have to change it for CHF 600 and it would be ready in 10 - 15 days

  • I have installed the new iOS 5 on my Iphone 3GS and my bluetooth connection doesn't work anymore. Does anybody have a solution?

    I have installed the new iOS 5 on my Iphone 3GS and my bluetooth connection for my Philips bluetooth headset doesn't work anymore. Does anybody have a solution?
    I have checked the headset on another Iphone with iOS 4 and it works well.
    Thanks for your help!
    Pierre (from Paris - France)

    Bonjour Pierre,
    there seems to be a bug in iOS5 with regards to Bluetooth. THere are a lot of threads in here on this. We're all waiting for Apple to fix this...

Maybe you are looking for

  • Bizarre Question - Accessing Variables w/ a String

    Im obsessed with finding a way to do this, haha, but i dont know if its remotely possible. Instead of explaining it i will post some pseudo-code... class HackClass{ int AVar = 1; int BVar = 2; int CVar = 3; // ...use some arbitrary method of getting

  • TS2446 How do i do to reset my security question? But I don't  know if  I have a rescue e-mail.

    How do i do to reset my security question? But I don't  know if  I have a rescue e-mail.

  • Scope Question - ratios?

    Hi all, A question about the scope when calculating ratios. If I have a report and introduce breaks to get sub-totals, when I total the columns, WebI puts sum(column_value) in the totals fields. If I then have a column which computes a percentage of

  • You Tube Creating problem in E5

    Hi All, I bought new Nokia E5 and its fantastic phone i liked it in all the way, but there is a problem in pre-installed You Tube Application. Whenever i try to watch any video's in You Tube, my phone gets Hangged and i have to remove the battery and

  • Skype Translator for the Deaf community in ASL (Am...

    It would be amazing if skype can include a translator for the deaf community and provide a translator for them. This would extend the deaf community comunication's via skype with any speaking person not just deaf people.