This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JavaFX and the fly likes NetBeans JavaFX Composer, jdbc, binding erroneous errors! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "NetBeans JavaFX Composer, jdbc, binding erroneous errors!" Watch "NetBeans JavaFX Composer, jdbc, binding erroneous errors!" New topic
Author

NetBeans JavaFX Composer, jdbc, binding erroneous errors!

Stephen Davies
Ranch Hand

Joined: Jul 23, 2008
Posts: 352
Is it just me or is there some deep rooted issues with running Netbeans 6.9 on Linux? I have floundered on multiple issues during my fx development project, all of which I will not recall here. However I would like to put out an SOS to the community in the hope that help may be at hand, especially since Google is becoming increasingly.. well awful at returning relevant information, even with advanced searches.

Running Netbeans on th latest Ubuntu release, all is well in my project code fine, mysql database found etc etc. At a first run, I can successfully map a ListView to information in a table on my database (using the Netbeans composer binding wizards). However trying to bind using a cellFactory to bind to the items of the list view to the exact same data Source (of course removing the original binding) throws a moan about returning an object when a record is needed. Fair enough but my converter selected from the bind wizard is (asReord).getString(), so how it thinks its a raw Object, I have no idea.
To put it in clearer terms here are a few code snippets.



If I repeat this process without the listCell and simply bind all records in the dataSource to the ListView with the Records[] > String[] conversion all is well. I would choose this if it were not for the fact there seems to be no other way to format the style of the listCell items, nor add an action on each one without using a listCell.

The most confounding thing of all, is if I try this at home on my Mac, it works! Go figure!


be a well encapsulated person, don't expose your privates, unless you public void getWife()!
 
 
subject: NetBeans JavaFX Composer, jdbc, binding erroneous errors!