Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!

  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NetBeans JavaFX Composer, jdbc, binding erroneous errors!  RSS feed

Stephen Davies
Ranch Hand
Posts: 352
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!